.home-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 20px auto 36px;
    color: #333;
    font-size: 14px;
}

.home-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.home-links, .home-columns {
    display: grid;
    gap: 18px;
}

.home-columns > * { min-width: 0; }

.home-banner { margin-bottom: 14px; }
.home-banner .carousel-track > div { flex: 0 0 100%; }
.home-banner img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 250; object-fit: cover; }
.home-banner .carousel-track a::after { inset: auto 0 0; height: 49px; background: rgb(0 0 0 / 66%); }
.home-banner .carousel-track a > p { inset-inline: 10px; bottom: 18px; font-size: 14px; }
.home-banner .carousel-dots { bottom: 0; gap: 1px; }
.home-banner .carousel-dots button { flex: 1; height: 9px; }
.home-banner .carousel-dots button::before { width: 100%; height: 5px; border-radius: 0; background: #333b; box-shadow: none; }
.home-banner .carousel-dots button[aria-current="true"]::before { width: 100%; background: #4d84f1; }

.home-panel { margin-bottom: 14px; }
.home-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 0 0;
    min-height: 36px;
    margin-bottom: 8px;
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
}
.home-panel > header h2 {
    color: #333;
    font-size: 18px;
    line-height: 24px;
    padding-left: 9px;
    border-left: 3px solid var(--gamehome-red);
}
.home-panel > header > a { color: #666; font-size: 12px; }

.home-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 6px; }
.home-icons a { display: grid; justify-items: center; row-gap: 4px; }
.home-icons img { max-width: 100%; border-radius: 12px; object-fit: cover; }
.home-icons span, .home-topics span {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-headlines li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 31px;
    padding: 0 3px;
    border-bottom: 1px dotted #e8e8e8;
}
.home-headlines a, .home-ranking a { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-headlines time { flex: 0 0 auto; color: #818181; font-size: 12px; }

.home-topics > header, .home-featured > header {
    background: #fff;
}
.home-topics > header h2, .home-featured > header h2 { border-left: 0; padding-left: 0; }
.home-featured > header { border-bottom: 0; margin-bottom: 4px; }
.home-topics ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 8px; }
.home-topics li { border: 1px solid #eee; text-align: center; min-width: 0; }
.home-topics li:nth-child(-n+2) { grid-column: 1 / -1; }
.home-topics li:nth-child(n+3) { position: relative; }
.home-topics li:nth-child(n+3)::before { content: ""; position: absolute; inset: 0 auto auto 0; border: 6px solid transparent; border-top-color: #f34c37; border-left-color: #f34c37; }
.home-topics li a { display: block; }
.home-topics img { display: block; width: 100%; height: auto; aspect-ratio: 218 / 113; object-fit: cover; }
.home-topics span { padding: 10px 4px; }
.home-featured .home-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.home-featured .home-icons a { align-items: center; justify-items: start; grid-template-columns: 44px minmax(0, 1fr); gap: 6px; font-size: 12px; }
.home-featured .home-icons img { width: 44px; height: 44px; }
.home-shelf { margin-top: 20px; padding: 20px; background: #fff; }
.home-shelf .home-icons { grid-template-columns: repeat(auto-fit, minmax(98px, 1fr)); }
.home-collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.home-collection-grid li { min-width: 0; }
.home-collection-grid img { display: block; width: 100%; height: auto; aspect-ratio: 215 / 100; object-fit: cover; }
.home-collection-grid span { display: block; padding: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-ranking { counter-reset: rank; }
.home-ranking li {
    counter-increment: rank;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    min-height: 40px;
    border-bottom: 1px solid #eee;
}
.home-ranking li::before {
    content: counter(rank);
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    background: #eaeaea;
    color: #555;
    flex: 0 0 auto;
    font-size: 12px;
}
.home-ranking li:nth-child(-n+3)::before { background: var(--rank-accent); color: #fff; }

.site-pc:has(.home-shell) { background: #f3f3f3; }
.site-pc:has(.home-shell) .footer .bottom1 { width: min(970px, 100%); }
.site-pc:has(.home-shell) .footer .bottom1 li { width: 100%; }
@media (min-width: 1050px) {
    .site-pc:has(.home-shell) .gamehome-nav a[aria-current="page"] {
        clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
    }
    .site-pc:has(.home-shell) .gamehome-allnav summary { clip-path: polygon(0 0, 100% 0, 100% 82%, 50% 100%, 0 82%); }
}
.home-links, .home-columns { padding: 20px; background: #fff; }
.home-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; row-gap: 22px; margin-bottom: 20px; }
.home-links section { display: block; padding: 0; background: #fff; border: 0; }
.home-links section { min-width: 0; }
.home-links h2 { padding: 0 0 8px; color: #444; background: transparent; border-bottom: 1px solid #ddd; }
.home-links h2 a { padding: 0 0 8px; border-bottom: 3px solid #ff4a37; }
.home-links section ul { display: flex; flex-wrap: wrap; align-content: flex-start; margin-top: 10px; gap: 7px 18px; min-height: 58px; }
.home-links li { max-width: min(100%, 16em); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-recommendations { display: grid; grid-column: 1 / -1; grid-template-columns: 51px minmax(0, 1fr) 51px; min-height: 142px; }
.home-recommendations .shortcut-title { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; color: #444; background: #a7a7a7; cursor: pointer; }
.home-recommendations .shortcut-title span { writing-mode: vertical-rl; letter-spacing: 2px; }
.home-recommendations .shortcut-title::before { content: ""; width: 9px; height: 9px; margin-inline: auto; border-radius: 50%; border: 1px solid #fff; }
.home-recommendations .shortcut-title[aria-pressed="true"] { color: #fff; background: linear-gradient(#ff351f, #fbab6e); }
.home-recommendations .software { grid-column: 3; grid-row: 1; }
.home-recommendations [data-home-tab-panel] { grid-column: 2; grid-row: 1; min-width: 0; border-block: 1px solid #e5e5e5; }
.home-recommendations ul { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.home-recommendations li { min-width: 0; max-width: none; border: solid #e5e5e5; border-width: 1px 1px 1px 0; }
.home-recommendations li a { display: grid; justify-items: center; padding: 16px 6px 8px; gap: 10px; }
.home-recommendations li img { object-fit: cover; border-radius: 12px; background: #f7f7f7; max-width: 100%; }
.home-recommendations li span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-columns { grid-template-columns: minmax(0, 390fr) minmax(0, 514fr) minmax(0, 218fr); column-gap: 19px; }
.home-tab-buttons { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #eee; padding: 5px 0 8px 13px; }
.home-tab-buttons button { position: relative; background: transparent; font-size: 17px; padding: 6px 18px; cursor: pointer; }
.home-tab-buttons button + button::before { content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%); width: 10px; height: 16px; background: url(/pc/images/ico-xlin.png) center / contain no-repeat; }
.home-tab-buttons button[aria-pressed="true"] { color: #286ae0; }
.home-timeline { border-left: 1px solid #ddd; margin: 0 0 0 5px; padding: 0 0 4px 11px; }
.home-timeline li { position: relative; min-height: 46px; display: grid; grid-template-columns: minmax(60px, 112px) minmax(0, 1fr) auto; padding: 0 0 0 8px; }
.home-timeline li::before { content: ""; border: 1px solid #ccc; border-radius: 50%; width: 5px; height: 5px; position: absolute; left: -15px; top: calc(50% - 3px); background: #fff; }
.home-timeline li:has(time):is(:first-child, :nth-child(7))::before { left: -27px; top: 50%; transform: translateY(-50%); width: 32px; height: 23px; border: 0; border-radius: 0; background: var(--timeline-mark) center / contain no-repeat; }
.home-timeline li:first-child { --timeline-mark: url(/pc/images/ico-new.png); }
.home-timeline li:nth-child(7) { --timeline-mark: url(/pc/images/ico-hot.png); }
.home-timeline li span { color: #777; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.home-updates-more { display: block; text-align: center; padding: 7px; color: #666; }
@media (min-width: 1100px) {
    .home-links { grid-template-rows: 100px 144px; row-gap: 20px; }
    .home-links section ul { max-height: 68px; overflow-y: auto; scrollbar-width: none; }
    .home-updates { position: relative; }
    .home-tab-buttons { box-sizing: border-box; min-height: 80px; }
    .home-updates-more { position: absolute; top: 24px; right: 0; padding-inline: 0; }
    .home-timeline { padding-bottom: 0; }
    .home-timeline li { box-sizing: border-box; min-height: 50px; }
    .home-topics { margin-top: 20px; margin-bottom: 0; }
    .home-topics > header { min-height: 30px; margin-bottom: 18px; }
}
@media (max-width: 900px) {
    .home-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-tab-buttons { gap: 3px; padding-left: 0; }
    .home-tab-buttons button { padding-inline: 12px; }
    .home-tab-buttons button + button::before { left: -6px; width: 7px; }
    .home-topics { grid-column: 1 / -1; }
    .home-topics ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .home-topics li:nth-child(-n+2) { grid-column: auto; }
    .home-recommendations ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .home-shell { width: calc(100% - 20px); }
    .home-links, .home-columns { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

.home-split-shelf { display: grid; grid-template-columns: minmax(0, 840fr) minmax(0, 290fr); gap: 30px; padding-bottom: 30px; }
.home-split-shelf:not(:has(aside)) { grid-template-columns: minmax(0, 1fr); }
.home-split-shelf .home-panel { display: flex; flex-direction: column; min-width: 0; margin-bottom: 0; }
.home-split-shelf .home-panel > header, .home-shelf > header { background: #fff; border-bottom: 1px solid #bfbfbf; }
:is(.home-topics, .home-shelf, .home-split-shelf .home-panel) > header h2 { display: flex; align-items: center; gap: 8px; padding-left: 7px; border-left: 0; font-size: 16px; font-weight: 600; }
:is(.home-topics, .home-shelf, .home-split-shelf .home-panel) > header h2::before { content: ""; width: 18px; height: 22px; flex: 0 0 18px; background: url(/pc/images/imgq.png) var(--home-heading-icon, -86px -133px) no-repeat; }
.home-topics { --home-heading-icon: -167px -82px; }
.home-split-shelf .home-panel { --home-heading-icon: -365px -39px; }
.home-split-shelf .home-shelf-aside { --home-heading-icon: -340px -40px; }
:is(.home-topics, .home-shelf, .home-split-shelf .home-panel) > header > a { display: flex; align-items: center; gap: 3px; color: #777; }
:is(.home-topics, .home-shelf, .home-split-shelf .home-panel) > header > a::after { content: "+"; color: #d9503d; font-size: 12px; }
.home-split-shelf .home-panel > ul { flex: 1; }
.home-download-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); grid-auto-rows: 1fr; gap: 16px 14px; }
.home-download-grid li { min-width: 0; border: 1px solid #e9e9e9; }
.home-download-grid li:hover, .home-hot-topics li:hover { box-shadow: 0 0 10px #0002; }
.home-download-grid a, .home-shelf-aside .home-collection-grid a { display: flex; flex-direction: column; height: 100%; }
.home-download-grid img { display: block; width: min(100%, 95px); height: auto; aspect-ratio: 1; margin: 16px auto 0; object-fit: cover; }
.home-download-grid strong, .home-editor-picks strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-download-grid strong { padding: 5px 4px 3px; font-weight: 400; }
.home-download-meta { display: flex; justify-content: space-between; align-items: center; gap: 3px; margin-top: auto; padding: 2px 4px 5px; color: #777; font-size: 12px; }
.home-download-meta span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-download-meta small { padding: 1px 4px; border-radius: 2px; color: #fff; background: #59b7da; white-space: nowrap; }
.home-shelf-aside .home-collection-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
.home-shelf-aside .home-collection-grid img { aspect-ratio: 290 / 100; }
.home-shelf-aside .home-collection-grid span { margin-top: auto; padding-bottom: 5px; }
.home-editor-picks { display: flex; flex-direction: column; justify-content: space-between; }
.home-editor-picks li + li { border-top: 1px solid #eee; }
.home-editor-picks a { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 29%); align-items: center; gap: 8px; padding: 8px 0 5px; }
.home-editor-picks img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; }
.home-editor-picks time { display: block; margin-top: 4px; color: #638d81; font-size: 12px; }
.home-editor-picks small { display: block; color: #777; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-editor-picks small::before { content: "·"; padding-right: 4px; color: #d9503d; font-weight: 700; }
.home-hot-topics > ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.home-hot-topics li { min-width: 0; border: 1px solid #e6e6e6; }
.home-hot-topics img { display: block; width: 100%; height: auto; aspect-ratio: 278 / 162; object-fit: cover; }
.home-hot-topics li a > div { display: flex; min-height: 56px; align-items: center; justify-content: space-between; gap: 6px; padding-inline: 12px; }
.home-hot-topics strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16px; font-weight: 400; }
.home-hot-topics span { flex: 0 0 auto; padding: 4px 10px; border-radius: 15px; background: #d5eef8; color: #225b70; font-size: 13px; }
.home-rank-section > header { justify-content: center; gap: 15px; min-height: 50px; margin: 0; padding: 0; border-bottom: 3px solid #e6e6e6; }
.home-rank-section > header h2 { --home-heading-icon: -362px -117px; font-size: 20px; }
.home-rank-section > header > a { border: 1px solid #cf6873; border-radius: 12px; padding-inline: 11px; color: #aa3e49; }
.home-rank-section > header > a::after { content: none; }
.home-rankings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 35px; }
.home-rank-card { --rank-accent: #d75863; --rank-offset: -168px; min-width: 0; padding-inline: 9px; border: 1px solid #e6e6e6; border-radius: 3px; }
.home-rank-card:nth-child(2) { --rank-accent: #187fbf; --rank-offset: -56px; }
.home-rank-card:nth-child(3) { --rank-accent: #a8630c; --rank-offset: -112px; }
.home-rank-card:nth-child(4) { --rank-accent: #17836f; --rank-offset: 0px; }
.home-rank-card h3 { width: min(100%, 150px); height: 56px; margin: -26px auto 0; background: url(/pc/images/ph_top.png) 0 var(--rank-offset) no-repeat; font-size: 17px; line-height: 49px; text-align: center; }
.home-rank-card h3 a { color: var(--rank-accent); }
.home-ranking li > div { min-width: 0; }
.home-ranking li > div a { display: block; }
.home-ranking li:first-child { min-height: 110px; }
.home-ranking li img { width: 90px; height: 90px; border-radius: 14px; object-fit: cover; }
.home-ranking small { display: block; color: #777; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.home-ranking li:last-child { border-bottom: 0; }
.home-rank-links { padding-inline: 10px; }
.home-rank-links > header { min-height: 40px; margin-bottom: 20px; }
.home-rank-links .topic-rank-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.home-rank-links li a { display: grid; min-height: 62px; place-items: center; padding: 0 8px; border-radius: 12px; background: #f5f5f5; font-size: 18px; text-align: center; }
.home-friend-links > ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.home-friend-links li { max-width: 100%; overflow-wrap: anywhere; }
@media (min-width: 1100px) {
    .home-split-shelf .home-panel > header { box-sizing: border-box; min-height: 60px; margin-bottom: 12px; padding-top: 18px; }
    .home-download-grid li { box-sizing: border-box; min-height: 178px; }
}
@media (max-width: 900px) { .home-download-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (max-width: 1000px) {
    .home-rankings, .home-hot-topics > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-rankings { row-gap: 37px; }
}
@media (max-width: 700px) {
    .home-split-shelf { grid-template-columns: minmax(0, 1fr); }
    .home-download-grid, .home-rank-links .topic-rank-links { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 540px) {
    .home-rankings { grid-template-columns: minmax(0, 1fr); }
    .home-hot-topics li a > div { flex-wrap: wrap; padding-block: 4px; }
    .home-rank-links li a { font-size: 15px; }
}
