/* Homepage showcase. All selectors are scoped to avoid changing other pages. */
body.home-showcase-page { --home-unit:10px; --home-content-width:calc(131.2 * var(--home-unit)); --home-gutter:max(calc((100% - var(--home-content-width)) / 2), 24px); background: #fff; }
.home-showcase-page .wrapper { min-width:0; }
.home-hero { position: relative; width: 100%; height:calc(86 * var(--home-unit)); overflow: hidden; background: #252532; color: #171717; }
.home-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .65s ease, visibility .65s ease; }
.home-hero__slide.is-active { opacity: 1; visibility: visible; }
.home-hero__slide-link { display:block; position:absolute; inset:0; color:inherit; text-decoration:none; }
.home-hero__slide-link:hover, .home-hero__slide-link:focus { color:inherit; text-decoration:none; }
.home-hero__slide-link:focus-visible { outline:2px solid #fff; outline-offset:-4px; }
.home-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.home-hero__slide[data-game-id="rush-preview"] .home-hero__art { object-position: center center; }
.home-hero__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(255,255,255,.04) 0%, rgba(255,255,255,.06) 35%, rgba(0,0,0,.1) 58%, rgba(0,0,0,.63) 100%); pointer-events: none; }
.home-hero__copy { position: absolute; z-index: 2; top:calc(17 * var(--home-unit)); left:var(--home-gutter); width:min(calc(61 * var(--home-unit)), 48%); }
.home-hero__title { margin:0 0 calc(1.6 * var(--home-unit)); font-size:calc(5.6 * var(--home-unit)); font-weight: 700; line-height: 1.2; color: #151515; }
.home-hero__summary { max-width:100%; margin:0 0 calc(2.3 * var(--home-unit)); font-size:calc(1.8 * var(--home-unit)); line-height: 1.6; color: #222; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.home-hero__more { display: inline-flex; align-items: center; justify-content: center; min-width:calc(18 * var(--home-unit)); padding:calc(1.2 * var(--home-unit)) calc(2.4 * var(--home-unit)); border-radius:calc(2.6 * var(--home-unit)); background: rgba(255,255,255,.63); color: #151515; text-decoration: none; font-size:calc(1.6 * var(--home-unit)); }
.home-hero__more:hover, .home-hero__more:focus { background: #fff; color: #151515; text-decoration: none; }
.home-hero__selector { position: absolute; z-index: 3; bottom:calc(28 * var(--home-unit)); right:var(--home-gutter); display: flex; flex-direction: column; align-items: flex-end; gap:calc(1.2 * var(--home-unit)); }
.home-hero__choice { display: flex; align-items: center; justify-content: flex-end; gap:var(--home-unit); min-height:calc(4.2 * var(--home-unit)); padding: 0; border: 0; background: none; color: #151515; cursor: pointer; font: inherit; opacity: .78; }
.home-hero__choice.is-active, .home-hero__choice:hover, .home-hero__choice:focus { opacity: 1; }
.home-hero__choice-name { font-size:calc(1.4 * var(--home-unit)); font-weight: 400; text-align: right; text-shadow: 0 1px 10px rgba(255,255,255,.85); transition: font-size .25s ease, font-weight .25s ease; }
.home-hero__choice.is-active .home-hero__choice-name { font-size:calc(1.8 * var(--home-unit)); font-weight: 700; }
.home-hero__choice-icon { width:calc(4 * var(--home-unit)); height:calc(4 * var(--home-unit)); object-fit: cover; border-radius:var(--home-unit); transform: scale(.78); transition: transform .25s ease; }
.home-hero__choice.is-active .home-hero__choice-icon { transform: scale(1.08); }
.home-hero__progress { position: absolute; z-index: 3; left:var(--home-gutter); right:var(--home-gutter); bottom:calc(22.8 * var(--home-unit)); height: 3px; background: rgba(255,255,255,.55); }
.home-hero__progress-fill { display: block; width: 0; height: 100%; background: #e42643; }
.home-hero__progress-fill.is-running { animation: home-hero-progress 6s linear forwards; }
@keyframes home-hero-progress { from { width: 0; } to { width: 100%; } }
.home-showcase { position: relative; z-index: 4; width:100%; margin:calc(-17 * var(--home-unit)) auto 0; }
.home-showcase__title { margin: 0 0 22px; font-size: 28px; line-height: 1.3; font-weight: 600; color: #171717; }
.home-showcase__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:calc(3.2 * var(--home-unit)); }
.home-game-card { display: block; min-width: 0; background: #fff; color: inherit; text-decoration: none; }
.home-game-card:visited, .home-game-card:hover, .home-game-card:focus, .home-game-card:focus-visible { color: inherit; text-decoration: none; }
.home-game-card__image { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0; line-height: 0; background: #e7e7e7; }
.home-game-card__cover { display: block; position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; margin: 0; padding: 0; border: 0; object-fit: cover; transition: transform .75s ease; }
.home-game-card:hover .home-game-card__cover, .home-game-card:focus-visible .home-game-card__cover { transform: scale(1.15); }
.home-game-card__mask { display: block; position: absolute; inset: -1px; box-sizing: border-box; margin: 0; padding: 0; border: 0; border-radius: 0; pointer-events: none; background: rgba(32,29,53,.12); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); opacity: 0; visibility: hidden; transition: opacity .25s ease .32s, visibility .25s ease .32s; }
.home-game-card:hover .home-game-card__mask, .home-game-card:focus-visible .home-game-card__mask { opacity: 1; visibility: visible; }
.home-game-card__mask-image { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; object-fit: cover; transform: scale(1.025); opacity: .75; }
.home-game-card__mask--unavailable { display: flex; align-items: center; justify-content: center; background: rgba(32,29,53,.58); color: rgba(255,255,255,.75); font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.4; text-shadow: none; }
.home-game-card__details { display: flex; align-items: center; gap:calc(1.2 * var(--home-unit)); min-height:calc(7.8 * var(--home-unit)); padding:var(--home-unit) 2px; }
.home-game-card__icon { flex: none; width:calc(4.8 * var(--home-unit)); height:calc(4.8 * var(--home-unit)); border-radius:calc(.9 * var(--home-unit)); object-fit: cover; }
.home-game-card__text { min-width: 0; }
.home-game-card__name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #202020; font-size:calc(1.8 * var(--home-unit)); text-decoration: none; }
.home-game-card:hover .home-game-card__name, .home-game-card:focus-visible .home-game-card__name { color: #b8291b; text-decoration: none; }
.home-game-card__type { display: block; margin-top: 5px; color: #95959b; font-size:calc(1.3 * var(--home-unit)); }
.home-game-card__meta { display: flex; align-items: center; gap: 5px; min-width: 0; margin-top: 5px; }
.home-game-card__meta .home-game-card__type { margin-top: 0; }
.home-game-card__platforms { display: inline-flex; align-items: center; gap: 2px; }
.home-game-card__platforms img { display: block; width: 14px; height: 14px; object-fit: contain; }
.home-showcase-page .main.home-main { padding-top: 0; }
.home-showcase-page #footer.footer-container { background-color: #20252e; }
.home-updates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:calc(3 * var(--home-unit)); width:100%; margin:calc(2.8 * var(--home-unit)) 0 calc(4.8 * var(--home-unit)); }
.home-updates-card { display:flex; flex-direction:column; box-sizing:border-box; min-width:0; height:calc(53.6 * var(--home-unit)); padding:calc(2.4 * var(--home-unit)) calc(2.4 * var(--home-unit)) calc(1.4 * var(--home-unit)); border:1px solid #e7e9ee; border-radius:12px; background:#fff; box-shadow:0 5px 24px rgba(29,40,60,.045); }
.home-updates-card__title { display:flex; flex:none; align-items:center; gap:10px; margin:0; padding-bottom:calc(1.8 * var(--home-unit)); border-bottom:1px solid #edf0f4; color:#20242c; font-size:calc(2.2 * var(--home-unit)); font-weight:600; line-height:1.4; }
.home-updates-heading-icon { display:block; flex:none; width:calc(2 * var(--home-unit)); height:calc(2 * var(--home-unit)); object-fit:contain; }
.home-updates-list { flex:1; min-height:0; margin:0 -12px 0 0; padding:0 12px 0 0; overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain; scrollbar-width:thin; scrollbar-color:#c7ced8 transparent; list-style:none; }
.home-updates-list::-webkit-scrollbar { width:5px; }
.home-updates-list::-webkit-scrollbar-thumb { border-radius:5px; background:#c7ced8; }
.home-updates-list:focus-visible { outline:2px solid #b8291b; outline-offset:3px; }
.home-updates-item { border-bottom:1px solid #edf0f4; }
.home-updates-item:last-child { border-bottom:0; }
.home-updates .home-updates-link { display:flex; box-sizing:border-box; flex-direction:column; align-items:flex-start; gap:calc(.6 * var(--home-unit)); min-width:0; min-height:calc(9.6 * var(--home-unit)); margin:0; padding:calc(1.4 * var(--home-unit)) 6px; border-radius:6px; color:#242831; text-decoration:none; transition:background .18s ease; }
.home-updates .home-updates-link:hover, .home-updates .home-updates-link:focus-visible { background:#fff8f7; text-decoration:none; }
.home-updates .home-updates-link:focus-visible { outline:2px solid #b8291b !important; outline-offset:2px; }
.home-updates-game { color:#8b9099; font-size:calc(1.2 * var(--home-unit)); line-height:1.4; overflow-wrap:anywhere; }
.home-updates-title { display:-webkit-box; max-width:100%; margin:0; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; color:#242831; font-size:calc(1.6 * var(--home-unit)); font-weight:600; line-height:1.5; overflow-wrap:anywhere; transition:color .18s ease; }
.home-updates-link:hover .home-updates-title, .home-updates-link:focus-visible .home-updates-title { color:#b8291b; }
.home-updates-date { color:#969ca6; font-size:calc(1.2 * var(--home-unit)); line-height:1.4; }
.home-updates-empty { display:flex; flex:1; align-items:center; justify-content:center; margin:0; padding:24px 0; color:#969ca6; font-size:14px; }
.home-updates-hint { display:flex; flex:none; align-items:center; justify-content:center; gap:8px; min-height:24px; margin:8px 0 0; visibility:hidden; color:#969ca6; font-size:12px; line-height:1.4; }
.home-updates-hint span { width:6px; height:6px; margin-top:-3px; border-right:1px solid #b8291b; border-bottom:1px solid #b8291b; transform:rotate(45deg); }
.home-updates-card.is-scrollable:not(.is-at-end) .home-updates-hint { visibility:visible; }
@media (min-width: 768px) {
    .home-showcase-page .main.home-main { width:min(var(--home-content-width), calc(100% - 48px)); margin-left:auto; margin-right:auto; }
    .home-hero__slide[data-game-id="rush-preview"]::after { background: linear-gradient(to right, rgba(255,255,255,.32), transparent 47%), linear-gradient(to bottom, transparent 35%, rgba(0,0,0,.08) 61%, rgba(0,0,0,.58) 100%); }
}
@media (min-width: 768px) and (max-width: 1050px) {
    .home-updates { grid-template-columns: 1fr; }
}
@media (min-width:1200px) and (max-width:1440px) {
    body.home-showcase-page { --home-unit:0.6944444444vw; }
}
@media (min-width:768px) and (max-width:1199px) {
    body.home-showcase-page { --home-content-width:min(1024px, calc(100% - 72px)); }
    .home-hero { height:700px; }
    .home-hero__copy { top:130px; width:52%; }
    .home-hero__title { font-size:40px; }
    .home-hero__summary { font-size:16px; }
    .home-hero__selector { bottom:195px; }
    .home-hero__progress { bottom:150px; }
    .home-showcase { margin-top:-100px; }
    .home-showcase__grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
}
@media (max-width: 767px) {
    .home-updates { grid-template-columns:1fr; box-sizing:border-box; width:auto; margin:0 22px 36px; gap:20px; }
    .home-updates-card { height:440px; padding:20px 20px 12px; }
    .home-updates-card__title { font-size:20px; }
    .home-showcase-page .main.home-main { width:100%; margin-left:auto; margin-right:auto; }
    .home-hero { height: min(565px, 145vw); min-height: 480px; color: #fff; }
    .home-hero__art { object-position: 58% center; }
    /* Previous mobile crop: .home-hero__slide[data-game-id="1"] .home-hero__art { object-position: 42% center; } */
    /* Keep the Summoners War character centered in the narrow mobile crop. */
    /* Previous adjustment: object-position: 55% center; */
    .home-hero__slide[data-game-id="1"] .home-hero__art { object-position: 52% center; }
    /* Previous Rush crop: object-fit: cover; object-position: 58% center; */
    .home-hero__slide[data-game-id="rush-preview"] .home-hero__art { object-fit: cover; object-position: center center; }
    .home-hero__slide::after { background: linear-gradient(to bottom, rgba(0,0,0,.02) 0%, rgba(0,0,0,.06) 35%, rgba(0,0,0,.43) 65%, rgba(0,0,0,.68) 100%); }
    .home-hero__copy { top: auto; bottom: 150px; left: 18px; right: 18px; width: auto; text-align: center; }
    .home-hero__title { margin-bottom: 10px; color: #fff; font-size: 28px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
    .home-hero__summary { margin: 0 auto; color: #fff; font-size: 13px; line-height: 1.5; white-space: normal; -webkit-line-clamp: 2; text-shadow: 0 1px 8px rgba(0,0,0,.65); }
    .home-hero__more { display: none; }
    .home-hero__selector { top: auto; bottom: 58px; left: 0; right: 0; flex-direction: row; align-items: center; justify-content: center; gap: 16px; }
    .home-hero__choice { display: block; width: 54px; height: 54px; min-height: 0; border: 2px solid transparent; border-radius: 13px; }
    .home-hero__choice.is-active { border-color: #fff; }
    .home-hero__choice-name { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
    .home-hero__choice.is-active .home-hero__choice-name { font-size: 14px; }
    .home-hero__choice-icon { display: block; width: 50px; height: 50px; border-radius: 10px; }
    .home-hero__progress { left: 0; right: 0; bottom: 0; height: 3px; }
    .home-showcase { width: auto; margin: 0; padding: 50px 22px 20px; }
    .home-showcase__title { margin-bottom: 20px; font-size: 24px; }
    .home-showcase__grid { display: flex; flex-direction: column; gap: 16px; }
    .home-game-card { display: flex; gap: 14px; }
    .home-game-card__image { flex: 0 0 130px; width: 130px; height: 73px; aspect-ratio: auto; }
    .home-game-card__cover { transition: none; }
    .home-game-card:hover .home-game-card__cover, .home-game-card:focus-visible .home-game-card__cover { transform: none; }
    .home-game-card__mask { display: none; }
    .home-game-card__details { display: block; min-height: 0; flex: 1; padding: 11px 0 0; }
    .home-game-card__icon { display: none; }
    .home-game-card__name { font-size: 15px; }
    .home-game-card__type { margin-top: 7px; font-size: 12px; }
    .home-game-card__meta { margin-top: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero__choice-name, .home-hero__choice-icon { transition: none; }
    .home-hero__slide, .home-game-card__cover, .home-game-card__mask { transition: none; }
    .home-hero__progress-fill.is-running { animation: none; width: 100%; }
}
