html{
    scroll-behavior:smooth;
}

.detail-page{
    --detail-sidebar-width:280px;
    --detail-column-gap:25px;
    width:1500px;
    max-width:calc(100% - 80px);
    margin:28px auto 0;
}

.detail-layout{
    /* Start between the logo and home link; center the sidebar under search. */
    width:calc(100% - 147px - 330px - clamp(20px, 4vw, 64px) + var(--detail-sidebar-width) + var(--detail-column-gap));
    margin-left:147px;
    display:grid;
    grid-template-columns:minmax(0,1fr) var(--detail-sidebar-width);
    gap:var(--detail-column-gap);
    align-items:start;
}

.detail-side-nav{
    position:fixed;
    left:clamp(24px, 2vw, 38px);
    top:50%;
    transform:translateY(-50%);
    z-index:20;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:0;
    background:transparent;
    max-height:calc(100vh - 100px);
    overflow-y:auto;
    scrollbar-width:none;
}

.detail-side-nav::-webkit-scrollbar{
    display:none;
}

.detail-side-nav a{
    position:relative;
    color:#b8b8b8;
    text-decoration:none;
    font-size:15px;
    line-height:1.35;
    padding:28px 0 0;
    margin-bottom:6px;
    text-align:center;
    white-space:nowrap;
    min-width:118px;
    letter-spacing:.2px;
    transition:color .22s ease, font-size .22s ease, transform .22s ease;
}

.detail-side-nav a::before{
    content:"";
    position:absolute;
    left:50%;
    top:0;
    transform:translateX(-50%);
    width:1px;
    height:20px;
    background:#3d3d3d;
}

.detail-side-nav a:first-child{
    padding-top:0;
}

.detail-side-nav a:first-child::before{
    display:none;
}

.detail-side-nav a:last-child{
    margin-bottom:0;
}

.detail-side-nav a:hover{
    color:#66c0f4;
}

.detail-side-nav a.active{
    color:#66c0f4;
    font-size:20px;
    font-weight:700;
    transform:translateY(-1px);
}

.detail-main{
    min-width:0;
}

.detail-hero,
.detail-section{
    background:#202020;
    border-radius:14px;
}

.detail-hero{
    display:grid;
    grid-template-columns:182px minmax(0,1fr);
    gap:14px;
    padding:0;
    margin-bottom:18px;
    align-items:stretch;
    background:transparent;
    scroll-margin-top:96px;
}

.detail-cover{
    width:182px;
    height:273px;
    padding:0;
    overflow:hidden;
    border:0;
    border-radius:12px;
    background:transparent;
}

.detail-cover img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
    border-radius:11px;
}

.detail-hero-content{
    min-width:0;
    height:272px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    padding:12px 22px;
    border-radius:14px;
    background:#202020;
}

.hero-title-block{
    min-width:0;
    width:100%;
    padding-top:6px;
}

.detail-hero h1{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
    font-size:26px;
    line-height:1.15;
    max-height:59.8px;
    margin-bottom:6px;
    color:#f3f5f7;
    font-weight:800;
    overflow-wrap:anywhere;
}

.english-title{
    overflow:hidden;
    width:100%;
    color:#67a9ce;
    font-size:15px;
    line-height:1.3;
    font-weight:600;
    margin-bottom:10px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.hero-heading-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) 230px;
    gap:30px;
    align-items:stretch;
    width:100%;
    min-width:0;
}

.hero-short-description{
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:3;
    overflow:hidden;
    width:100%;
    height:calc(1.7em * 3);
    color:#bcc3cc;
    font-size:14px;
    line-height:1.7;
    margin:14px 0 0;
}

.detail-hero-facts{
    display:grid;
    grid-template-columns:1fr;
    grid-template-rows:repeat(3,30px);
    align-content:space-between;
    gap:0;
    width:100%;
    height:146px;
    margin:30px 0 0;
    padding:6px 0 6px 22px;
    box-sizing:border-box;
    border-left:1px solid #303740;
    align-self:start;
}

.hero-fact-row{
    min-width:0;
    display:grid;
    grid-template-columns:30px minmax(0,1fr);
    grid-template-rows:14px 16px;
    column-gap:10px;
    row-gap:4px;
}

.hero-fact-icon{
    grid-column:1;
    grid-row:1;
    width:30px;
    height:30px;
    margin:0;
    padding:4px;
    border-radius:0;
    background:transparent;
    color:#87929f;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.hero-fact-row span{
    grid-column:2;
    grid-row:1;
    color:#87909b;
    font-size:12px;
    line-height:14px;
}

.hero-fact-row strong{
    grid-column:2;
    grid-row:2;
    overflow:hidden;
    color:#cdd4dc;
    font-size:13px;
    line-height:16px;
    font-weight:500;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.hero-actions{
    align-self:start;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    width:100%;
    margin-top:auto;
}

.hero-actions button{
    height:40px;
    border:1px solid transparent;
    border-radius:8px;
    padding:0 17px;
    cursor:pointer;
    background:#63acd5;
    color:#111820;
    font-weight:600;
    font-size:14px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    white-space:nowrap;
    transition:background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.action-icon{
    width:15px;
    height:15px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.hero-actions button:first-child:hover{
    background:#75b9df;
    transform:translateY(-1px);
}

.hero-actions button:first-child[aria-pressed="true"]{
    background:#79bde3;
}

.hero-actions button:first-child[aria-pressed="true"] .action-icon{
    fill:currentColor;
}

.hero-actions button + button{
    background:#292b2e;
    border-color:#3b4147;
    color:#cbd1d8;
}

.hero-actions button + button:hover{
    border-color:#65a9cf;
    color:#e5eaf0;
    transform:translateY(-1px);
}

.detail-section{
    padding:22px;
    margin-bottom:18px;
    scroll-margin-top:96px;
}

.detail-section h2{
    color:#eef1f5;
    font-size:19px;
    line-height:1.3;
    font-weight:700;
    margin-bottom:16px;
}

.game-category-section{
    padding:18px 22px;
}

.detail-category-tags{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
}

.detail-category-tags span{
    max-width:8em;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#bbc3cc;
    background:#25272a;
    border:1px solid #31353a;
    border-radius:16px;
    padding:5px 10px;
    font-size:13px;
}

.detail-text{
    color:#cbd2da;
    font-size:15px;
    line-height:1.75;
    max-width:740px;
}

.detail-text p + p{
    margin-top:12px;
}

.rich-content h3{
    font-size:17px;
    font-weight:700;
    margin:20px 0 10px;
    color:#e6ebf0;
}

.rich-content img,
.rich-content video,
.rich-content iframe{
    width:100%;
    max-width:100%;
    height:auto;
    border:0;
    border-radius:12px;
    display:block;
    margin:18px 0;
    background:#202020;
}

.rich-content iframe{
    aspect-ratio:16 / 9;
}

.rich-content figure img{
    margin:0;
}

.rich-content figure{
    margin:18px 0;
}

.rich-content figcaption{
    color:#858e99;
    font-size:12px;
    margin-top:8px;
}

.requirements-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.requirement-card{
    min-width:0;
}

.requirement-card + .requirement-card{
    border-left:1px solid #3a3a3a;
    padding-left:20px;
}

.requirement-card h3{
    color:#e1e6ec;
    font-size:16px;
    font-weight:700;
    margin-bottom:12px;
    border-left:3px solid #5fa8d0;
    padding-left:10px;
}

.requirement-row{
    display:grid;
    grid-template-columns:82px minmax(0,1fr);
    gap:10px;
    padding:8px 0;
    border-bottom:1px solid #2b2b2b;
    color:#cdd4dc;
    font-size:14px;
    line-height:1.7;
}

.requirement-row:last-child{
    border-bottom:none;
}

.requirement-row span:first-child{
    color:#87909b;
}

.requirement-row strong{
    min-width:0;
    color:inherit;
    font-weight:500;
    overflow-wrap:anywhere;
}

.requirement-empty{
    padding:22px 0;
    color:#7f8a95;
    font-size:13px;
}

.detail-video-list{
    display:grid;
    gap:18px;
}

.detail-video-item h3{
    margin-bottom:10px;
    color:#dbe2e9;
    font-size:15px;
}

.detail-video-item video{
    display:block;
    width:100%;
    max-width:100%;
    border-radius:10px;
    background:#111519;
}

.resource-section{
    background:#202020;
    border:1px solid rgba(102,192,244,.22);
}

.resource-list{
    display:grid;
    gap:11px;
}

.resource-link{
    display:flex;
    align-items:center;
    width:100%;
    height:56px;
    padding:0 16px;
    border:1px solid #34383d;
    border-radius:9px;
    background:#27292c;
    color:#d7dce2;
    text-decoration:none;
    cursor:pointer;
    transition:background .2s ease, border-color .2s ease, transform .2s ease;
}

.resource-provider-icon{
    flex:0 0 34px;
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    margin-right:13px;
    border-radius:8px;
    background:#30353a;
    color:#7eb9d9;
    transition:background .2s ease, color .2s ease;
}

.resource-display-text{
    min-width:0;
    overflow:hidden;
    color:#d7dce2;
    font-size:15px;
    line-height:1.4;
    font-weight:550;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.resource-link:hover{
    background:#2b2e31;
    border-color:rgba(102,192,244,.45);
    transform:translateY(-1px);
}

.resource-link:hover .resource-provider-icon{
    background:#343b41;
    color:#91c9e7;
}

.mod-preview p{
    color:#c4cbd3;
    margin-bottom:16px;
}

.detail-rightbar{
    position:static;
    min-width:0;
}

.detail-more-link{
    display:inline-block;
    margin-top:18px;
    color:#68acd2;
    text-decoration:none;
    font-size:14px;
}

.related-section{
    background:#181818;
    padding:22px;
    margin-bottom:18px;
}

.related-section h2{
    color:#eef1f5;
    font-size:19px;
    line-height:1.3;
    font-weight:700;
    margin-bottom:16px;
}

.related-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
}

.related-card{
    background:#202020;
    border:1px solid #2a2a2a;
    border-radius:10px;
    padding:16px;
}

.related-card img{
    display:block;
    width:100%;
    aspect-ratio:460 / 215;
    object-fit:contain;
    background:#11161b;
    border-radius:8px;
    margin-bottom:12px;
}

.related-card h3{
    color:#e3e8ee;
    font-size:15px;
    font-weight:600;
    margin-bottom:8px;
}

.related-card p{
    color:#9099a4;
    font-size:13px;
    line-height:1.6;
}

@media (max-width:1100px){
    .related-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:1260px){
    .detail-page{
        max-width:calc(100% - 48px);
    }

    .detail-layout{
        width:100%;
        max-width:820px;
        margin:0 auto;
        grid-template-columns:1fr;
    }

    .detail-side-nav{
        display:none;
    }

    .detail-rightbar{
        width:300px;
        max-width:100%;
    }
}

@media (max-width:720px){
    .detail-page{
        max-width:calc(100% - 28px);
    }

    .detail-hero{
        grid-template-columns:1fr;
        gap:18px;
    }

    .detail-cover{
        width:182px;
        height:272px;
        padding:0;
    }

    .detail-cover img{
        width:180px;
    }

    .detail-hero-content{
        height:272px;
        padding:16px 18px;
    }

    .detail-hero-facts{
        grid-template-columns:1fr;
        gap:6px;
    }

    .detail-hero h1{
        font-size:24px;
        max-height:57.6px;
    }

    .hero-actions{
        grid-template-columns:repeat(3,minmax(0,1fr));
        width:100%;
        gap:8px;
    }

    .hero-actions button{
        min-width:0;
        padding:0 10px;
    }

    .detail-section{
        padding:20px;
    }

    .requirements-grid{
        grid-template-columns:1fr;
    }

    .requirement-card + .requirement-card{
        border-left:0;
        border-top:1px solid #3a3a3a;
        padding-left:0;
        padding-top:20px;
    }

    .related-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media (max-width:600px){
    .detail-hero-content{
        height:auto;
        min-height:500px;
    }

    .hero-heading-row{
        grid-template-columns:1fr;
        gap:14px;
    }

    .detail-hero-facts{
        grid-template-columns:1fr;
        grid-template-rows:none;
        gap:10px;
        height:auto;
        margin-top:0;
        padding:0;
        border-left:0;
    }

    .hero-actions{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .hero-actions button:last-child{
        grid-column:1 / -1;
    }
}

@media (max-width:480px){
    .related-grid{
        grid-template-columns:1fr;
    }
}

/* Detail header: vertical cover, summary and publisher facts */
.detail-hero{display:grid;grid-template-columns:182px minmax(0,1fr);gap:14px;background:transparent;border:0}
.detail-cover{box-shadow:0 10px 26px rgba(0,0,0,.18)}
.detail-hero-content{height:273px;min-height:273px;padding:18px 24px}
.detail-hero.has-horizontal-cover{grid-template-columns:clamp(200px,28%,250px) minmax(0,1fr)}
.detail-hero.has-horizontal-cover .detail-cover{align-self:center;justify-self:center;width:100%;height:auto;aspect-ratio:460 / 215}
.detail-hero.has-horizontal-cover .detail-cover img{width:100%;height:100%;object-fit:contain}
.hero-heading-row{grid-template-columns:minmax(0,1fr) 260px;gap:34px}
.detail-hero-facts{height:146px;margin:12px 0 0}
.hero-short-description{height:auto;min-height:48px;max-width:620px;-webkit-line-clamp:3;margin-top:12px}
.hero-actions{max-width:680px;margin-top:auto}
.section-heading-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.section-heading-row h2{margin-bottom:0}
.section-heading-row > span{color:#7f8a95;font-size:12px}
.review-section{padding:18px}
.steam-review-card{display:grid;grid-template-columns:210px 230px minmax(0,1fr);gap:24px;align-items:center;min-height:112px;padding:16px 20px;border:1px solid #33404a;border-radius:13px;background:linear-gradient(135deg,#1c252d,#20272d)}
.review-brand{display:flex;gap:12px;align-items:flex-start}
.steam-review-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;border-radius:11px;background:#273b4b;color:#78bde2;font-size:22px}
.review-brand div{display:grid;gap:3px}.review-brand strong{color:#e6edf3;font-size:15px}.review-brand small{color:#7f8c98;font-size:12px}.review-brand em{justify-self:start;margin-top:5px;padding:4px 10px;border-radius:14px;background:#24493e;color:#7ed3a6;font-size:12px;font-style:normal;font-weight:700}
.review-score{padding:0 22px;border-left:1px solid #34414b;border-right:1px solid #34414b}.review-score div{display:flex;align-items:baseline;gap:6px}.review-score div b{color:#74b9e2;font-size:36px;line-height:1}.review-score div span{color:#8995a0;font-size:12px}.review-score div strong{color:#cad2da;font-size:14px}.review-score p{margin-top:7px;color:#929da8;font-size:12px}.review-score p b{color:#bbc7d1}.review-score small{display:block;margin-top:7px;color:#6f7a84;font-size:11px}
.review-breakdown strong{display:block;color:#cbd4dc;font-size:13px;margin-bottom:12px}.review-meter{height:8px;border-radius:99px;background:#543a40;overflow:hidden}.review-meter i{display:block;height:100%;background:linear-gradient(90deg,#42b989,#71cfa9);border-radius:inherit}.review-breakdown p{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;margin-top:10px;color:#8a96a1;font-size:12px}.review-breakdown p b{color:#68c89a}.review-breakdown p span:nth-child(2) b{color:#df7680}
.review-empty{display:flex;align-items:center;gap:15px;min-height:92px;padding:20px;border:1px dashed #39434c;border-radius:12px;color:#8b98a3}.review-empty > span{font-size:30px;color:#5d8aa3}.review-empty strong{display:block;color:#cbd4dc;margin-bottom:6px}.review-empty p{font-size:13px}
.screenshot-gallery{display:grid;gap:12px;min-width:0}.screenshot-stage{position:relative;overflow:hidden;aspect-ratio:16/9;border-radius:12px;background:#111519}.gallery-main{position:relative;overflow:hidden;display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}.gallery-main img{display:block;width:100%;height:100%;object-fit:cover}.gallery-counter{position:absolute;right:12px;bottom:11px;padding:5px 9px;border-radius:999px;background:rgba(9,14,18,.82);color:#f1f5f8;font-size:11px;font-variant-numeric:tabular-nums;pointer-events:none}.gallery-nav{position:absolute;z-index:2;top:50%;display:grid;place-items:center;width:38px;height:58px;padding:0;border:0;border-radius:8px;background:rgba(9,14,18,.62);color:#fff;font-size:29px;line-height:1;opacity:0;transform:translateY(-50%);transition:opacity .18s ease,background .18s ease;cursor:pointer}.gallery-prev{left:12px}.gallery-next{right:12px}.screenshot-stage:hover .gallery-nav,.gallery-nav:focus-visible{opacity:1}.gallery-nav:hover{background:rgba(9,14,18,.86)}.screenshot-thumbnails{display:flex;gap:9px;overflow-x:auto;padding:1px 1px 7px;scrollbar-width:thin;scrollbar-color:#56636d transparent}.screenshot-thumbnails button{width:112px;aspect-ratio:auto;align-self:flex-start;flex:0 0 112px;overflow:hidden;padding:2px;border:2px solid transparent;border-radius:7px;background:#171c20;cursor:pointer;opacity:.72;transition:border-color .16s ease,opacity .16s ease}.screenshot-thumbnails button:hover{opacity:1}.screenshot-thumbnails button.active{border-color:#66c0f4;opacity:1}.screenshot-thumb-frame{position:relative;display:block;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden;border-radius:4px}.screenshot-thumbnails img{display:block;width:100%;height:100%;object-fit:cover;border-radius:4px;background:#0d1114}.gallery-empty{padding:50px;text-align:center;color:#7f8a94}
.screenshot-viewer{position:fixed;inset:0;margin:auto;width:min(1200px,calc(100% - 72px));max-height:calc(100% - 72px);padding:0;border:0;background:transparent;overflow:visible}.screenshot-viewer::backdrop{background:rgba(0,0,0,.88)}.screenshot-viewer img{display:block;width:100%;max-height:calc(100vh - 80px);object-fit:contain;border-radius:12px}.screenshot-viewer button{position:absolute;z-index:2;border:0;background:#111b;color:#fff;cursor:pointer}.viewer-close{right:10px;top:10px;width:38px;height:38px;border-radius:50%;font-size:24px}.viewer-prev,.viewer-next{top:50%;transform:translateY(-50%);width:44px;height:64px;font-size:36px}.viewer-prev{left:10px}.viewer-next{right:10px}
.resource-layout{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:16px}.resource-help-actions{display:flex;flex-direction:column;gap:10px}.resource-help-actions button{height:48px;border:1px solid #39424a;border-radius:9px;background:#292e33;color:#cbd3da;font:inherit;font-size:13px;cursor:pointer}.resource-help-actions button:hover{border-color:#61acd4;color:#80c5e9}.resource-help-panel{margin-top:14px;padding:14px 16px;border-radius:9px;background:#18242c;color:#aebbc5;font-size:13px;line-height:1.7}.resource-help-panel strong{display:block;color:#dbe4eb;margin-bottom:4px}.resource-disclaimer{margin-top:18px;padding-top:15px;border-top:1px solid #303840;color:#737f89;font-size:11px;line-height:1.7}

html[data-theme="light"] .detail-side-nav a{color:var(--text-muted)}html[data-theme="light"] .detail-side-nav a.active,html[data-theme="light"] .detail-side-nav a:hover{color:var(--accent)}html[data-theme="light"] .detail-side-nav a::before{background:var(--border-normal)}
html[data-theme="light"] .detail-section,html[data-theme="light"] .related-section{background:var(--card-bg);border-color:var(--card-border);box-shadow:var(--shadow-small)}
html[data-theme="light"] .detail-hero{background:transparent;box-shadow:none}html[data-theme="light"] .detail-cover{background:var(--card-bg);border:0;box-shadow:var(--shadow-small)}
html[data-theme="light"] .detail-hero-content{background:var(--card-bg)}
html[data-theme="light"] .detail-hero h1,html[data-theme="light"] .detail-section h2,html[data-theme="light"] .related-section h2{color:var(--text-primary)}html[data-theme="light"] .english-title{color:var(--accent)}html[data-theme="light"] .hero-short-description{color:var(--text-secondary)}html[data-theme="light"] .detail-hero-facts{border-color:var(--border-normal)}html[data-theme="light"] .hero-fact-row span{color:var(--text-muted)}html[data-theme="light"] .hero-fact-row strong{color:var(--text-secondary)}
html[data-theme="light"] .hero-actions button+button{background:var(--bg-input);border-color:var(--border-normal);color:var(--text-secondary)}html[data-theme="light"] .detail-category-tags span{background:var(--bg-input);border-color:var(--border-light);color:var(--text-secondary)}
html[data-theme="light"] .requirement-card + .requirement-card{border-color:var(--border-normal)}html[data-theme="light"] .requirement-card h3{color:var(--text-primary)}html[data-theme="light"] .requirement-row{border-color:var(--border-light);color:var(--text-secondary)}html[data-theme="light"] .requirement-row span:first-child,html[data-theme="light"] .requirement-empty{color:var(--text-muted)}html[data-theme="light"] .detail-video-item h3{color:var(--text-primary)}html[data-theme="light"] .detail-video-item video{background:#dce3e8}
html[data-theme="light"] .steam-review-card{background:var(--bg-soft);border-color:var(--border-normal)}html[data-theme="light"] .review-brand strong,html[data-theme="light"] .review-score div strong,html[data-theme="light"] .review-breakdown strong,html[data-theme="light"] .review-empty strong{color:var(--text-primary)}html[data-theme="light"] .review-score{border-color:var(--border-normal)}html[data-theme="light"] .review-score p,html[data-theme="light"] .review-score small,html[data-theme="light"] .review-breakdown p,html[data-theme="light"] .review-empty{color:var(--text-muted)}
html[data-theme="light"] .screenshot-stage{background:#dce3e8}html[data-theme="light"] .screenshot-thumbnails button{background:#e1e7eb}html[data-theme="light"] .screenshot-thumbnails img{background:#d7dee3}html[data-theme="light"] .resource-section{border-color:var(--accent-border)}html[data-theme="light"] .resource-link{background:var(--bg-soft);border-color:var(--border-light);color:#28384a}html[data-theme="light"] .resource-link:hover{background:var(--bg-hover);border-color:var(--accent-border)}html[data-theme="light"] .resource-display-text{color:#28384a}html[data-theme="light"] .resource-provider-icon{background:var(--bg-soft)}html[data-theme="light"] .resource-help-actions button{background:var(--bg-input);border-color:var(--border-normal);color:var(--text-secondary)}html[data-theme="light"] .resource-help-panel{background:var(--accent-soft);color:var(--text-secondary)}html[data-theme="light"] .resource-help-panel strong{color:var(--text-primary)}html[data-theme="light"] .resource-disclaimer{border-color:var(--border-light);color:var(--text-muted)}
html[data-theme="light"] .related-card{background:var(--card-bg);border-color:var(--card-border);box-shadow:var(--shadow-small)}html[data-theme="light"] .related-card h3{color:var(--text-primary)}html[data-theme="light"] .related-card p{color:var(--text-muted)}
html[data-theme="light"] .related-card img{background:var(--tag-bg)}

@media(max-width:900px){.steam-review-card{grid-template-columns:1fr 1fr}.review-breakdown{grid-column:1/-1}.resource-layout{grid-template-columns:1fr}.resource-help-actions{flex-direction:row}.resource-help-actions button{flex:1}}
@media(max-width:1450px){.detail-hero.has-horizontal-cover .hero-heading-row{grid-template-columns:minmax(0,1fr) 175px;gap:18px}.detail-hero.has-horizontal-cover .detail-hero-facts{padding-left:16px}}
@media(max-width:720px){.detail-hero{grid-template-columns:182px minmax(0,1fr)}.detail-hero.has-horizontal-cover{grid-template-columns:28% minmax(0,1fr)}.detail-hero.has-horizontal-cover .detail-cover{width:100%;height:auto;aspect-ratio:460 / 215}.hero-heading-row{grid-template-columns:1fr}.detail-hero-facts{display:none}.detail-hero-content{height:273px;min-height:273px}.hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-actions button:last-child{grid-column:1/-1}}
@media(max-width:600px){.detail-hero-content{min-height:0;padding:20px}.hero-heading-row{grid-template-columns:1fr}.detail-hero-facts{height:auto;margin-top:4px;padding:16px 0 0;border-left:0;border-top:1px solid #303740;gap:10px}.steam-review-card{grid-template-columns:1fr}.review-score{padding:14px 0;border:0;border-top:1px solid #34414b;border-bottom:1px solid #34414b}.review-breakdown{grid-column:auto}.screenshot-thumbnails button{width:88px;flex-basis:88px}.gallery-nav{opacity:.85}.resource-help-actions{flex-direction:column}.related-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.detail-hero,.detail-hero.has-horizontal-cover{grid-template-columns:1fr}.detail-cover{justify-self:center}.detail-hero.has-horizontal-cover .detail-cover{width:min(100%,320px)}.detail-hero-content{width:100%;height:auto;min-height:300px}}

/* Unified hero actions and optional full game introduction. */
.hero-actions button,
.hero-actions button + button,
html[data-theme="light"] .hero-actions button,
html[data-theme="light"] .hero-actions button + button{
    border:1px solid rgba(112,132,149,.24);
    background:#293137;
    color:#d4dde4;
    box-shadow:0 5px 14px rgba(4,12,18,.08);
}
.hero-actions button:hover,
.hero-actions button + button:hover{
    border-color:rgba(111,171,205,.48);
    background:#303b43;
    color:#edf3f7;
    transform:translateY(-1px);
}
.hero-actions button:first-child[aria-pressed="true"]{
    border-color:rgba(103,169,206,.42);
    background:#2b3d49;
    color:#a8d3eb;
}
.game-introduction-content{
    color:#b9c3cc;
    font-size:14px;
    line-height:1.9;
    overflow-wrap:anywhere;
}
.game-introduction-content h2,
.game-introduction-content h3{
    margin:24px 0 10px;
    color:#e4ebf0;
}
.game-introduction-content p{margin:0 0 14px}
.game-introduction-content img{
    display:block;
    max-width:100%;
    height:auto;
    margin:18px auto;
    border-radius:10px;
}
.game-introduction-content a{color:#78bde2}
html[data-theme="light"] .hero-short-description{
    color:#4f6377;
}
html[data-theme="light"] .hero-fact-row span{
    color:#66798b;
}
html[data-theme="light"] .hero-fact-row strong{
    color:#40566b;
}
html[data-theme="light"] .requirement-row{
    color:#43596d;
}
html[data-theme="light"] .requirement-row span:first-child,
html[data-theme="light"] .requirement-empty{
    color:#687b8d;
}
html[data-theme="light"] .hero-actions button,
html[data-theme="light"] .hero-actions button + button{
    border-color:rgba(100,124,145,.18);
    background:#edf2f5;
    color:#465d70;
    box-shadow:0 5px 14px rgba(45,65,85,.05);
}
html[data-theme="light"] .hero-actions button:hover,
html[data-theme="light"] .hero-actions button + button:hover{
    border-color:rgba(73,130,166,.30);
    background:#e7eef2;
    color:#244f6b;
}
html[data-theme="light"] .hero-actions button:first-child[aria-pressed="true"]{
    border-color:rgba(62,133,177,.28);
    background:#e4eff5;
    color:#28678d;
}
html[data-theme="light"] .game-introduction-content{
    color:#4e6276;
}
html[data-theme="light"] .game-introduction-content h2,
html[data-theme="light"] .game-introduction-content h3{
    color:#182b3e;
}


/* Keep the detail header geometry identical for portrait and horizontal cover fallbacks. */
.detail-hero,
.detail-hero.has-horizontal-cover{
    grid-template-columns:182px minmax(0,1fr);
    gap:14px;
}
.detail-cover,
.detail-hero.has-horizontal-cover .detail-cover{
    display:flex;
    align-items:center;
    justify-content:center;
    width:182px;
    height:273px;
    aspect-ratio:auto;
    align-self:stretch;
    justify-self:start;
    overflow:visible;
    background:transparent;
    border:0;
    box-shadow:none;
}
.detail-cover img{
    width:182px;
    height:273px;
    object-fit:contain;
    border:0;
    box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.detail-hero.has-horizontal-cover .detail-cover img{
    width:182px;
    height:auto;
    aspect-ratio:460 / 215;
    object-fit:contain;
    box-shadow:0 10px 26px rgba(0,0,0,.16);
}
.hero-short-description{
    min-height:0;
    height:auto;
    margin-top:8px;
    font-size:13.5px;
    line-height:1.62;
    -webkit-line-clamp:5;
}
.detail-hero.has-horizontal-cover .hero-heading-row{
    grid-template-columns:minmax(0,1fr) 260px;
    gap:34px;
}
.detail-hero.has-horizontal-cover .detail-hero-facts{padding-left:22px}

/* Resource actions share the heading row; help remains a normal link target. */
.resource-heading-row{align-items:center}
.resource-heading-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:9px;
    flex-wrap:wrap;
}
.resource-heading-actions button,
.resource-heading-actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:108px;
    height:36px;
    padding:0 14px;
    border:1px solid rgba(112,132,149,.24);
    border-radius:9px;
    background:#293137;
    color:#c8d3db;
    font:inherit;
    font-size:12px;
    text-decoration:none;
    cursor:pointer;
    transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.resource-heading-actions button:hover:not(:disabled),
.resource-heading-actions a:hover{
    border-color:rgba(111,171,205,.48);
    background:#303b43;
    color:#edf3f7;
    transform:translateY(-1px);
}
.resource-heading-actions button:disabled{opacity:.45;cursor:default}
.resource-list{width:100%}
html[data-theme="light"] .resource-heading-actions button,
html[data-theme="light"] .resource-heading-actions a{
    border-color:rgba(100,124,145,.18);
    background:#edf2f5;
    color:#465d70;
    box-shadow:0 4px 12px rgba(45,65,85,.04);
}
html[data-theme="light"] .resource-heading-actions button:hover:not(:disabled),
html[data-theme="light"] .resource-heading-actions a:hover{
    border-color:rgba(73,130,166,.30);
    background:#e7eef2;
    color:#244f6b;
}
@media(max-width:720px){
    .detail-hero,
    .detail-hero.has-horizontal-cover{grid-template-columns:182px minmax(0,1fr)}
    .detail-hero.has-horizontal-cover .detail-cover{width:182px;height:273px;aspect-ratio:auto}
    .detail-hero.has-horizontal-cover .hero-heading-row{grid-template-columns:1fr}
}
@media(max-width:600px){
    .resource-heading-row{align-items:flex-start;flex-direction:column}
    .resource-heading-actions{width:100%;justify-content:flex-start}
}
@media(max-width:520px){
    .detail-hero,
    .detail-hero.has-horizontal-cover{grid-template-columns:1fr}
    .detail-cover,
    .detail-hero.has-horizontal-cover .detail-cover{justify-self:center;width:182px;height:273px}
    .detail-hero-content{width:100%;height:auto;min-height:300px}
}


/* Horizontal fallbacks live inside the same portrait card used by real portrait covers. */
.detail-cover,
.detail-hero.has-horizontal-cover .detail-cover{
    overflow:hidden;
    border-radius:12px;
    background:#20272d;
    box-shadow:0 10px 26px rgba(0,0,0,.18);
}
.detail-cover img,
.detail-hero.has-horizontal-cover .detail-cover img{
    border:0;
    border-radius:0;
    box-shadow:none;
}
html[data-theme="light"] .detail-cover,
html[data-theme="light"] .detail-hero.has-horizontal-cover .detail-cover{
    background:#edf2f5;
    box-shadow:0 10px 26px rgba(48,70,88,.13);
}

/* Each resource keeps its name and download action together; reporting stays outside and quiet. */
.resource-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
}
.resource-card{
    display:grid;
    grid-template-columns:34px minmax(0,1fr) auto;
    gap:13px;
    align-items:center;
    min-width:0;
    min-height:62px;
    padding:8px 10px 8px 16px;
    border:1px solid #34383d;
    border-radius:10px;
    background:#27292c;
}
.resource-card .resource-provider-icon{margin:0}
.resource-card .resource-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    width:116px;
    height:40px;
    padding:0 14px;
    border:1px solid rgba(102,192,244,.34);
    border-radius:9px;
    background:#315b73;
    color:#edf8ff;
    font-size:13px;
    font-weight:700;
    box-shadow:0 5px 13px rgba(3,13,20,.13);
}
.resource-card .resource-link:hover{
    border-color:rgba(126,210,255,.56);
    background:#386b87;
    color:#fff;
    transform:translateY(-1px);
}
html[data-theme="light"] .resource-card{background:var(--bg-soft);border-color:var(--border-light)}
html[data-theme="light"] .resource-card .resource-link{
    border-color:rgba(38,142,198,.22);
    background:#2c96cc;
    color:#fff;
    box-shadow:0 5px 13px rgba(34,91,130,.10);
}
html[data-theme="light"] .resource-card .resource-link:hover{background:#2389bf;border-color:rgba(30,124,177,.35)}
@media(max-width:600px){
    .resource-row{grid-template-columns:1fr}
    .resource-row .resource-report-button{justify-self:end}
    .resource-card{grid-template-columns:30px minmax(0,1fr) auto;padding-left:12px}
    .resource-card .resource-link{width:104px;padding:0 10px}
}


/* Keep editorial images readable without letting one image dominate the article. */
.game-introduction-content img{
    width:auto;
    max-width:min(70%,640px);
    max-height:460px;
    object-fit:contain;
}

/* Hero actions stay equal, but carry enough contrast to read as actions. */
.hero-actions button,
.hero-actions button + button{
    border-color:rgba(117,177,210,.30);
    background:linear-gradient(180deg,#344957,#2d3f4b);
    color:#e6f1f7;
    box-shadow:0 6px 15px rgba(4,13,20,.13);
}
.hero-actions button .action-icon{color:#83c5e8}
.hero-actions button:hover,
.hero-actions button + button:hover{
    border-color:rgba(119,195,236,.54);
    background:linear-gradient(180deg,#3d5666,#334955);
    color:#fff;
}
html[data-theme="light"] .hero-actions button,
html[data-theme="light"] .hero-actions button + button{
    border-color:rgba(72,137,174,.22);
    background:linear-gradient(180deg,#f5fafc,#e4eff5);
    color:#244e68;
    box-shadow:0 6px 15px rgba(45,78,100,.08);
}
html[data-theme="light"] .hero-actions button .action-icon{color:#2f86b5}
html[data-theme="light"] .hero-actions button:hover,
html[data-theme="light"] .hero-actions button + button:hover{
    border-color:rgba(48,133,181,.36);
    background:linear-gradient(180deg,#fff,#dcebf3);
    color:#153f59;
}

/* Reporting remains secondary but uses a finished compact control. */
.resource-row .resource-report-button{
    min-width:76px;
    height:34px;
    padding:0 10px;
    border:1px solid rgba(157,123,123,.16);
    border-radius:8px;
    background:rgba(91,67,67,.12);
    color:#a78e8e;
}
.resource-row .resource-report-button:hover:not(:disabled){
    border-color:rgba(195,124,124,.30);
    background:rgba(120,72,72,.18);
    color:#d2a2a2;
}
html[data-theme="light"] .resource-row .resource-report-button{
    border-color:rgba(142,101,101,.13);
    background:#f1eeee;
    color:#8e7777;
}
html[data-theme="light"] .resource-row .resource-report-button:hover:not(:disabled){
    border-color:rgba(175,93,93,.24);
    background:#f3e8e8;
    color:#a85d5d;
}
.related-grid.shared-game-cards{gap:16px}
.related-grid.shared-game-cards .game-card{text-decoration:none}
@media(max-width:600px){
    .game-introduction-content img{max-width:100%;max-height:440px}
}


/* Final detail controls: quiet card-like actions that match the surrounding panel. */
.hero-actions button,
.hero-actions button + button,
html[data-theme="light"] .hero-actions button,
html[data-theme="light"] .hero-actions button + button{
    border:1px solid #d6e0e6;
    background:#edf2f5;
    color:#304b5e;
    box-shadow:0 3px 9px rgba(45,68,84,.045);
}
.hero-actions button .action-icon,
html[data-theme="light"] .hero-actions button .action-icon{color:#607f93}
.hero-actions button:hover,
.hero-actions button + button:hover,
html[data-theme="light"] .hero-actions button:hover,
html[data-theme="light"] .hero-actions button + button:hover{
    border-color:#c7d5de;
    background:#e6edf1;
    color:#213f53;
    box-shadow:0 5px 12px rgba(45,68,84,.07);
}
html:not([data-theme="light"]) .hero-actions button,
html:not([data-theme="light"]) .hero-actions button + button{
    border-color:#3b4851;
    background:#293239;
    color:#d4dde3;
}
html:not([data-theme="light"]) .hero-actions button:hover,
html:not([data-theme="light"]) .hero-actions button + button:hover{background:#303b43;border-color:#4a5c67;color:#eef3f6}

/* Rich introduction images stay supportive to the article instead of filling the card. */
.game-introduction-content img{
    width:auto;
    height:auto;
    max-width:min(100%,480px);
    max-height:360px;
    object-fit:contain;
}

/* Help and per-link reporting are lightweight text actions. */
.resource-heading-actions a,
html[data-theme="light"] .resource-heading-actions a{
    min-width:0;
    width:auto;
    height:auto;
    padding:4px 0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:#728596;
}
.resource-heading-actions a:hover,
html[data-theme="light"] .resource-heading-actions a:hover{
    border:0;
    background:transparent;
    box-shadow:none;
    color:#287ca9;
    transform:none;
}
.resource-row .resource-report-button,
html[data-theme="light"] .resource-row .resource-report-button{
    justify-self:end;
    min-width:60px;
    width:60px;
    height:auto;
    margin-left:8px;
    padding:6px 0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:#8996a1;
}
.resource-row .resource-report-button:hover:not(:disabled),
html[data-theme="light"] .resource-row .resource-report-button:hover:not(:disabled){
    border:0;
    background:transparent;
    color:#a85f5f;
}
.resource-row .resource-report-button:disabled{background:transparent;color:#a4adb4}

/* Refined detail actions and compact rich-article media. */
.hero-actions button,
.hero-actions button + button,
html[data-theme="light"] .hero-actions button,
html[data-theme="light"] .hero-actions button + button{
    border:1px solid #d3e1e9;
    background:#f6f9fb;
    color:#29485c;
    box-shadow:none;
}
.hero-actions button .action-icon,
html[data-theme="light"] .hero-actions button .action-icon{color:#3389b8}
.hero-actions button:hover,
.hero-actions button + button:hover,
html[data-theme="light"] .hero-actions button:hover,
html[data-theme="light"] .hero-actions button + button:hover{
    border-color:#b9d3e1;
    background:#edf6fa;
    color:#1f5f81;
    box-shadow:none;
}
.game-introduction-content img{
    width:auto;
    height:auto;
    max-width:min(100%,360px);
    max-height:280px;
    object-fit:contain;
}


/* Compact, identifiable resource rows. */
.resource-heading-actions a.resource-help{
    min-width:0;
    height:auto;
    padding:4px 0;
    border:0;
    border-radius:0;
    background:transparent;
    color:#8594a1;
    box-shadow:none;
    font-size:12px;
    font-weight:400;
    text-decoration:none;
    transform:none;
}
.resource-heading-actions a.resource-help:hover{
    border:0;
    background:transparent;
    color:#59add9;
    box-shadow:none;
    transform:none;
}
.resource-list{gap:10px}
.resource-item{
    display:grid;
    grid-template-columns:26px max-content minmax(0,1fr) max-content max-content;
    align-items:center;
    column-gap:14px;
    min-width:0;
    min-height:62px;
    padding:10px 12px 10px 16px;
    border:1px solid rgba(142,162,178,.12);
    border-radius:10px;
    background:rgba(39,45,50,.76);
    transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.resource-item:hover{
    background:rgba(44,51,57,.92);
    border-color:rgba(64,161,210,.22);
    box-shadow:0 4px 14px rgba(0,0,0,.10);
}
.resource-provider{display:contents}
.resource-item .resource-provider-icon{
    display:block;
    width:26px;
    height:26px;
    margin:0;
    border:0;
    border-radius:7px;
    background:transparent;
    object-fit:contain;
    flex:0 0 auto;
}
.resource-provider-name{
    color:#9baab6;
    font-size:12px;
    font-weight:500;
    white-space:nowrap;
}
.resource-title,
.resource-display-text{
    min-width:0;
    overflow:hidden;
    color:#dbe4eb;
    font-size:14px;
    font-weight:600;
    line-height:1.45;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.resource-item .resource-download,
.resource-item .resource-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    height:38px;
    padding:0 18px;
    border:1px solid rgba(28,148,215,.20);
    border-radius:9px;
    background:#249bd3;
    color:#fff;
    font-size:13px;
    font-weight:600;
    line-height:1;
    text-decoration:none;
    white-space:nowrap;
    box-shadow:0 4px 12px rgba(36,155,211,.14);
    transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
}
.resource-item .resource-download:hover,
.resource-item .resource-link:hover{
    border-color:rgba(28,148,215,.26);
    background:#168fcb;
    color:#fff;
    transform:translateY(-1px);
    box-shadow:0 6px 16px rgba(36,155,211,.20);
}
html[data-theme="light"] .resource-heading-actions a.resource-help{
    border:0;
    background:transparent;
    color:#7d8e9e;
    box-shadow:none;
}
html[data-theme="light"] .resource-heading-actions a.resource-help:hover{
    border:0;
    background:transparent;
    color:#168bc7;
}
html[data-theme="light"] .resource-item{
    background:rgba(244,248,251,.78);
    border-color:rgba(102,128,150,.10);
}
html[data-theme="light"] .resource-item:hover{
    background:rgba(250,252,253,.96);
    border-color:rgba(40,150,210,.16);
    box-shadow:0 4px 14px rgba(45,70,90,.06);
}
html[data-theme="light"] .resource-provider-name{color:#52677a}
html[data-theme="light"] .resource-title,
html[data-theme="light"] .resource-display-text{color:#20364a}
html[data-theme="light"] .resource-item .resource-provider-icon{background:transparent}
html[data-theme="light"] .resource-item .resource-download,
html[data-theme="light"] .resource-item .resource-link{
    border-color:rgba(28,148,215,.20);
    background:#249bd3;
    color:#fff;
    box-shadow:0 4px 12px rgba(36,155,211,.14);
}
html[data-theme="light"] .resource-item .resource-download:hover,
html[data-theme="light"] .resource-item .resource-link:hover{
    background:#168fcb;
    color:#fff;
    box-shadow:0 6px 16px rgba(36,155,211,.20);
}
@media(max-width:600px){
    .resource-heading-row{align-items:center;flex-direction:row}
    .resource-heading-actions{width:auto;justify-content:flex-end}
    .resource-item{
        grid-template-columns:24px max-content minmax(24px,1fr) max-content max-content;
        column-gap:8px;
        min-height:58px;
        padding:8px 9px 8px 11px;
    }
    .resource-item .resource-provider-icon{width:24px;height:24px}
    .resource-provider-name{font-size:11px}
    .resource-title,.resource-display-text{font-size:12px}
    .resource-item .resource-download,
    .resource-item .resource-link{height:36px;padding:0 10px;font-size:12px}
}

/* Resource action icon and final one-row order. */
.resource-heading-actions a.resource-help{
    display:inline-flex;
    align-items:center;
    gap:5px;
}
.resource-help-icon{
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex:0 0 auto;
}
.resource-item{
    grid-template-columns:26px max-content minmax(0,1fr) max-content max-content;
}
.resource-item .resource-download,
.resource-item .resource-link{
    gap:7px;
}
.resource-action-icon{
    width:17px;
    height:17px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex:0 0 auto;
}
@media(max-width:600px){
    .resource-item{
        grid-template-columns:24px max-content minmax(24px,1fr) max-content max-content;
    }
    .resource-action-icon{width:16px;height:16px}
    .resource-help-icon{width:15px;height:15px}
}



/* Preserve complete game information; the same compact layout serves phones and narrow windows. */
.detail-hero,.detail-hero.has-horizontal-cover{grid-template-columns:182px minmax(0,1fr)}
.detail-hero .hero-heading-row,.detail-hero.has-horizontal-cover .hero-heading-row{grid-template-columns:minmax(0,1fr) 260px;gap:34px}
.detail-hero .detail-cover,.detail-hero.has-horizontal-cover .detail-cover{width:182px;height:273px;aspect-ratio:2/3;align-self:start;justify-self:start}
.detail-hero .detail-cover img,.detail-hero.has-horizontal-cover .detail-cover img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center}
.detail-main{container-type:inline-size;container-name:detail-content}
.detail-hero-content{box-sizing:border-box;height:auto;min-height:273px;padding:18px 24px}
.detail-hero .hero-title-block{padding-top:6px}
.detail-hero h1{display:block;max-height:none;overflow:visible;-webkit-line-clamp:unset;white-space:normal}
.detail-hero .english-title{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.hero-short-description{display:block;width:100%;height:auto;min-height:0;max-height:none;max-width:none;margin-top:8px;color:#c2ccd5;font-size:14px;line-height:1.6;letter-spacing:0;overflow:visible;overflow-wrap:anywhere;-webkit-line-clamp:unset}
.detail-hero .detail-hero-facts{height:146px;min-height:146px;grid-template-columns:1fr;grid-template-rows:repeat(3,34px);align-content:space-between;gap:0;margin:36px 0 0;padding:6px 0 6px 22px;border-left:1px solid #303740}
.detail-hero .hero-fact-row{grid-template-columns:30px minmax(0,1fr);grid-template-rows:14px minmax(16px,auto);column-gap:10px;row-gap:4px}
.detail-hero .hero-fact-icon{grid-row:1/3;align-self:center;width:30px;height:30px}
.detail-hero .hero-fact-row strong:empty::before{content:"—"}
.detail-hero .hero-fact-row strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
.detail-hero .hero-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex-shrink:0;gap:10px;width:100%;max-width:none;margin-top:auto;padding-top:12px}
.detail-hero .hero-actions button{min-width:0}
html[data-theme="light"] .hero-short-description{color:#465d72}
@media(max-width:1500px){
    .detail-page{max-width:calc(100% - 48px)}
    .detail-layout{width:100%;max-width:960px;margin:0 auto;grid-template-columns:minmax(0,1fr)}
    .detail-side-nav,.detail-rightbar{display:none}
}
@media(max-width:720px){.detail-page{max-width:calc(100% - 28px)}}
@container detail-content (max-width:860px){
    .detail-hero,.detail-hero.has-horizontal-cover{
        --compact-cover-width:clamp(96px,26cqi,128px);
        display:grid;grid-template-columns:var(--compact-cover-width) minmax(0,1fr);
        grid-template-areas:"cover title" "cover english" "cover facts" "description description" "actions actions";
        grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:12px 16px;
        padding:18px;background:#202020;
    }
    .detail-hero .detail-cover{grid-area:cover;align-self:start;justify-self:start;width:var(--compact-cover-width);height:auto;aspect-ratio:2/3;margin:0;box-shadow:none}
    .detail-hero .detail-cover img{width:100%;height:100%;object-fit:cover}
    .detail-hero.has-horizontal-cover .detail-cover{width:var(--compact-cover-width);height:auto;aspect-ratio:2/3}
    .detail-hero-content,.detail-hero .hero-heading-row,.detail-hero .hero-title-block{display:contents}
    .detail-hero h1{grid-area:title;align-self:start;margin:0;font-size:26px;line-height:1.25;overflow-wrap:anywhere}
    .detail-hero .english-title{grid-area:english;align-self:start;margin:0;font-size:14px;line-height:1.5}
    .detail-hero .hero-short-description{grid-area:description;margin:2px 0 0;padding-top:14px;border-top:1px solid #303740;font-size:14px;line-height:1.8}
    .detail-hero .detail-hero-facts,.detail-hero.has-horizontal-cover .detail-hero-facts{grid-area:facts;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(3,minmax(18px,auto));min-height:0;height:auto;gap:7px;margin:0;padding:0;border:0;align-content:start}
    .detail-hero .hero-fact-row{display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto;column-gap:6px;row-gap:0;align-items:baseline;min-width:0}
    .detail-hero .hero-fact-icon{display:none}
    .detail-hero .hero-fact-row span{grid-column:1;grid-row:1;line-height:1.5;font-size:12px}
    .detail-hero .hero-fact-row strong{grid-column:2;grid-row:1;line-height:1.5;font-size:12px}
    .detail-hero .hero-actions{grid-area:actions;align-self:start;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0}
    .detail-hero .hero-actions button{width:100%;min-width:0;height:40px;padding:0 8px;font-size:13px;gap:6px}
    .detail-hero .hero-actions button:last-child{grid-column:auto}
    html[data-theme="light"] .detail-hero{background:#fff}
    html[data-theme="light"] .detail-hero .hero-short-description{border-color:var(--border-normal)}
}
@container detail-content (max-width:400px){
    .detail-hero,.detail-hero.has-horizontal-cover{padding:16px;gap:12px}
    .detail-hero h1{font-size:22px}
    .detail-hero .hero-actions button{font-size:12px;padding:0 6px;gap:4px}
    .detail-hero .hero-actions button svg{width:14px;height:14px;flex:0 0 14px}
}
@media(max-width:360px){.detail-section{padding:16px}.resource-item{column-gap:4px}}

/* Global resource notice is editable plain text, including line breaks. */
.resource-disclaimer{white-space:pre-line;overflow-wrap:anywhere}

/* Palette only: match the shared dark surfaces without touching detail geometry. */
html[data-theme="dark"] :is(.detail-section,.detail-hero-content,.related-section,.resource-section){background:var(--card-bg);border-color:var(--border-normal)}
html[data-theme="dark"] :is(.related-card,.resource-item,.resource-link,.steam-review-card){background:var(--bg-card-strong);border-color:var(--border-normal)}
html[data-theme="dark"] :is(.detail-hero h1,.detail-section h2,.related-card h3,.game-introduction-content h2,.game-introduction-content h3,.resource-display-text){color:var(--text-primary)}
html[data-theme="dark"] :is(.hero-short-description,.detail-text,.game-introduction-content,.hero-fact-row strong){color:var(--text-secondary)}
html[data-theme="dark"] :is(.english-title,.hero-fact-row span,.resource-provider-name,.resource-disclaimer,.related-card p){color:var(--text-muted)}
html[data-theme="dark"] .detail-category-tags span{background:var(--tag-bg);border-color:var(--accent-border);color:var(--tag-text)}
html[data-theme="dark"] .hero-actions button,html[data-theme="dark"] .hero-actions button + button{background:var(--bg-card-strong);border-color:var(--border-normal);color:var(--text-secondary)}
html[data-theme="dark"] .hero-actions button:hover{background:var(--bg-hover);border-color:var(--accent-border);color:var(--text-primary)}
html[data-theme="dark"] .resource-item :is(.resource-download,.resource-link){background:var(--button-bg);border-color:var(--accent-border);color:var(--button-text)}
html[data-theme="dark"] .resource-item :is(.resource-download,.resource-link):hover{background:var(--button-hover);color:var(--button-text)}

html[data-theme="light"] body[data-modern-detail] {
    --page-bg: #fff;
    --bg-header: #fff;
    --card-bg: #f6f8fa;
    --bg-soft: #edf1f4;
    --bg-input: #f3f5f7;
    --bg-hover: color-mix(in srgb, var(--brand-blue) 15%, #f6f8fa);
    --text-primary: #181c22;
    --text-secondary: #495362;
    --text-muted: #5d6878;
    --intro-copy: #3f566e;
    --compact-spec-copy: #414b58;
    --link-text: #253547;
    --accent-soft: color-mix(in srgb, var(--brand-blue) 12%, var(--card-bg));
    --accent-border: color-mix(in srgb, var(--brand-blue) 48%, var(--border-normal));
    --tag-bg: var(--accent-soft);
    --tag-text: var(--link-text);
    --border-light: #e4e9ee;
    --detail-divider: #d6dfe8;
    --border-normal: #dce3ea;
    --card-border: var(--border-normal);
    --shadow-sm: 0 2px 8px #191d2409;
    --shadow-md: 0 4px 14px #191d240c;
    --actions-bg: #e8edf2;
    --gallery-bg: #57626e;
    --gallery-border: #75818f;
    --gallery-scroll: #becad5;
    background: var(--page-bg);
}
html[data-theme="dark"] body[data-modern-detail] {
    --page-bg: #121216;
    --bg-header: #18181c;
    --card-bg: #1d1d22;
    --bg-soft: #26262c;
    --bg-input: #28282e;
    --bg-hover: #3a3a41;
    --text-primary: #f1f2f4;
    --text-secondary: #c1c3ca;
    --text-muted: #a6a9b2;
    --intro-copy: #becbdb;
    --compact-spec-copy: #d0d2d8;
    --link-text: var(--brand-blue);
    --accent-soft: color-mix(in srgb, var(--brand-blue) 14%, var(--card-bg));
    --accent-border: color-mix(in srgb, var(--brand-blue) 45%, var(--border-normal));
    --tag-bg: #292930;
    --tag-text: var(--link-text);
    --border-light: #2f2f35;
    --detail-divider: #37373f;
    --border-normal: #36363d;
    --card-border: var(--border-normal);
    --shadow-sm: 0 2px 7px #0003;
    --shadow-md: 0 5px 15px #0004;
    --actions-bg: #303035;
    --gallery-bg: #232428;
    --gallery-border: #494a50;
    --gallery-scroll: #858992;
    background: var(--page-bg);
}
body[data-modern-detail] {
    --brand-blue: #4db7f3;
    --accent: var(--brand-blue);
    --button-bg: var(--brand-blue);
    --button-hover: var(--brand-blue);
    --button-text: #10222e;
    --spec-copy: var(--text-primary);
    --bg-card: var(--card-bg);
    --bg-card-strong: var(--bg-soft);
    --bg-page: var(--page-bg);
    --shadow-small: var(--shadow-sm);
}
html[data-theme] body[data-modern-detail] .navbar {
    background: var(--bg-header);
    border-bottom-color: var(--border-normal);
    box-shadow: var(--shadow-sm);
}
html[data-theme] body[data-modern-detail] .navbar .theme-toggle {
    background: var(--bg-input);
    color: var(--accent);
}
html[data-theme] body[data-modern-detail] .navbar .logo-title {color: var(--accent);}
html[data-theme] body[data-modern-detail] .navbar nav a:is(:hover,[aria-current="page"]) {color: var(--link-text);}
html[data-theme] body[data-modern-detail] .search-box input::placeholder {color: var(--text-muted);}
.game-view-page {
    --resource-button-width: 108px;
    --resource-button-height: 38px;
    --resource-row-inset: 14px;
    width: min(1220px, calc(100% - clamp(40px, 5vw, 64px)));
    min-width: 0;
    margin: 22px auto 0;
}
.game-view-overview {
    display: grid;
    grid-template: "heading" auto "journey" auto / minmax(0,1fr);
    align-items: start;
    gap: 14px 24px;
    margin-bottom: 20px;
}
.game-view-heading {grid-area: heading; min-width: 0;}
.game-view-crumb {display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; margin: 0 0 4px; line-height: 1.4;}
.game-view-crumb a {color: var(--link-text); text-decoration: none; padding-inline: 0;}
.game-view-crumb a:hover {color: var(--link-text); text-decoration: underline;}
.game-view-title h1 {font-size: clamp(32px, 2.8vw, 34px); font-weight: 700; line-height: 1.2; color: var(--text-primary); overflow-wrap: anywhere;}
html[data-theme] .game-view-title .english-title {color: var(--brand-blue); font-size: 13px; font-weight: 500; letter-spacing: .05em; line-height: 1.55; margin: 4px 0 0;}
.game-view-mobile-actions {display: none;}
.game-view-actions {display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px;}
.game-view-rail > .game-view-actions {margin-top: 8px;}
.game-view-actions button {
    background: var(--actions-bg); border: 0; border-radius: 6px;
    min-height: 36px; padding: 0 12px; color: var(--text-primary); font: inherit; font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer;
}
.game-view-actions svg {width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;}
.game-view-actions button:hover {background: var(--bg-hover);}
.game-view-page :focus-visible {outline: 2px solid var(--accent); outline-offset: 2px;}
.game-view-journey {
    grid-area: journey; display: grid; grid-template-columns: minmax(0,1fr) clamp(244px,34.1%,416px); gap: 24px;
    align-items: start;
}
.game-view-left-column,.game-view-right-column,.game-view-body-column {min-width: 0;}
.game-view-media {
    min-width: 0; overflow: hidden; border-radius: 10px;
    background: var(--gallery-bg); box-shadow: var(--shadow-sm);
}
.game-view-body-column {padding-top: 17px;}
.game-view-rail {margin-top: 12px;}
.game-view-rank {display: grid; grid-template-columns: minmax(0,1fr); gap: 14px; margin-top: 17px; width: 100%;}
.game-view-page .game-view-rank.home-page :is(.ranking-box,.category-box) {grid-column: 1; grid-row: auto; min-width: 0; margin: 0;}
.game-view-rank :is(.ranking-heading h2,.category-box h2) {font-size: 19px; font-weight: 600;}
.game-view-rank.home-page .rank-item span {font-size: 15px; font-weight: 600;}
.game-view-rank.home-page .rank-item i {color: var(--text-muted);}
.game-view-rank.home-page .ranking-heading .rank-tabs {background: var(--bg-soft);}
.game-view-page .game-view-rank.home-page .rank-tabs .active {background: var(--button-bg); color: var(--button-text);}
.game-view-rank .category-grid span {font-weight: 500;}
.game-view-stage {
    display: grid; position: relative; aspect-ratio: 16 / 9;
    background: #101014; overflow: hidden; touch-action: pan-y;
}
.game-view-main-image, .game-view-stage video {display: block; width: 100%; height: 100%; min-height: 0; grid-area: 1 / 1;}
.game-view-main-image img, .game-view-stage video {display: block; width: 100%; height: 100%; object-fit: contain;}
.game-view-counter {position: absolute; top: 12px; right: 12px; padding: 4px 8px; border-radius: 6px; background: #101820c9; color: #fff; font-size: 12px; pointer-events: none;}
.game-view-arrow {position: absolute; top: 50%; transform: translateY(-50%); min-width: 40px; min-height: 44px; border: 0; border-radius: 7px; color: #fff; background: #101820a8; font-size: 27px; cursor: pointer;}
.game-view-prev {left: 10px;}
.game-view-next {right: 10px;}
.game-view-stage.is-video .game-view-arrow {top: 42%;}
.game-view-thumbnails {display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--gallery-scroll) var(--gallery-bg);}
.game-view-thumbnails button {position: relative; flex: 0 0 86px; aspect-ratio: 16 / 9; min-width: 0; padding: 0; border: 1px solid var(--gallery-border); border-radius: 4px; background: var(--gallery-bg); overflow: hidden; cursor: pointer;}
.game-view-thumbnails img {display: block; width: 100%; height: 100%; object-fit: cover;}
.game-view-thumbnails button:is([aria-pressed="true"],:focus-visible) {border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0;}
.game-view-play {display: grid; place-items: center; position: absolute; inset: 0; font-size: 16px; color: #fff; background: #1119233d;}
.game-view-details {
    min-width: 0; display: grid; gap: 10px; align-content: start;
    padding: 15px 16px;
    background: var(--bg-card); border: 1px solid var(--border-normal); border-radius: 10px;
    box-shadow: var(--shadow-md);
}
.game-view-cover {display: block; width: 100%; aspect-ratio: 460 / 215; overflow: hidden; background: var(--bg-soft);}
.game-view-cover img {display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 0;}
.game-view-summary {position: relative; min-width: 0;}
.game-view-summary p {color: var(--spec-copy); line-height: 1.6; font-size: 15px; font-weight: 400; overflow-wrap: anywhere; margin: 0;}
.game-view-summary-measure {position: absolute; inset: 0 0 auto; visibility: hidden; pointer-events: none;}
.game-view-page [hidden], .game-view-toast[hidden] {display: none !important;}
.game-view-facts {display: grid; gap: 0; min-width: 0; font-size: 13px; line-height: 1.5;}
.game-view-facts div {display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 8px; align-items: start; padding: 5px 0; border-top: 1px solid var(--border-light);}
.game-view-facts dt {color: var(--text-muted);}
.game-view-facts dd {color: var(--text-primary); overflow-wrap: anywhere;}
.game-view-facts .game-view-publisher {white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.game-view-category-links {display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px;}
.game-view-category-links :is(a,span) {padding: 2px 7px; border-radius: 5px; background: var(--tag-bg); color: var(--tag-text); white-space: nowrap; font-size: 13px; font-weight: 500; text-decoration: none;}
.game-view-category-links a {display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--accent-border);}
.game-view-category-links a::after {content: '›'; color: var(--accent); font-size: 14px; line-height: 1;}
.game-view-category-links a:hover {background: var(--bg-hover); color: var(--link-text); text-decoration: underline;}
.game-view-page .detail-section {min-width: 0; margin: 0 0 18px; scroll-margin-top: 90px;}
html[data-theme] .game-view-page :is(.detail-section,.related-section) {
    background: var(--bg-card); border: 1px solid var(--border-normal); box-shadow: var(--shadow-sm);
}
html[data-theme] .game-view-page :is(.resource-section,.game-view-rank .ranking-box,.game-view-rank .category-box) {box-shadow: var(--shadow-md);}
html[data-theme] .game-view-page .game-view-introduction-content {color: var(--intro-copy); overflow-wrap: anywhere; text-align: left; font-size: 15px; font-weight: 400; line-height: 1.65;}
.game-view-page .game-view-introduction-content a {color: var(--link-text);}
.game-view-page .game-view-introduction-content :is(p,h2,h3,h4,div,figure) {text-align: left;}
.game-view-intro-block + .game-view-intro-block {margin-top: 9px;}
.game-view-introduction-content .game-view-intro-block p {margin: 0;}
.game-view-page .game-view-introduction-content img {max-height: none; margin: 0 auto 0 0; border-radius: 0;}
.game-view-introduction-content .intro-motion {display: block; position: relative; width: fit-content; max-width: 100%; margin: 0; overflow: hidden;}
.game-view-introduction-content .intro-motion img {position: relative; display: block; z-index: 1; max-width: 100%; height: auto; pointer-events: none;}
.game-view-introduction-content .intro-motion video {position: absolute; display: block; inset: 0; margin: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none;}
.game-view-introduction-content .intro-motion:not(:has(img)) {width: min(100%, 900px); aspect-ratio: 16 / 9; background: var(--bg-soft);}
.game-view-introduction-content .intro-motion.is-playing img {visibility: hidden;}
.game-view-reference-motion {width: min(100%,616px); aspect-ratio: 616 / 260;}
.game-view-intro-reference {position: absolute; visibility: hidden; pointer-events: none;}
.game-view-motion-tap {
    position: absolute; inset: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: flex-end;
    border: 0; background: transparent; cursor: pointer; color: #fff; padding: 8px; font: inherit;
}
.game-view-motion-tap span {background: #152029d9; border-radius: 5px; padding: 4px 7px; font-size: 12px;}
.game-view-body-toggle {
    display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 10px; border: 0; border-radius: 6px;
    background: var(--bg-soft); color: var(--link-text); text-align: center;
    font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.game-view-body-toggle:hover {background: var(--bg-hover); text-decoration: underline;}
.game-view-page :is(#requirements,#introduction,#versionIntroduction,#resources,#mods,#related) h2 {font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 12px;}
.game-view-page #requirements .requirement-card h3 {font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); border-color: var(--accent);}
.game-view-page #requirements .requirement-card + .requirement-card {border-color: var(--border-normal);}
.game-view-page #requirements .requirement-row {grid-template-columns: 68px minmax(0,1fr); padding-block: 5px; font-size: 13px; line-height: 1.5; border-bottom: 0;}
.game-view-page #requirements .requirement-row span:first-child {color: var(--text-muted);}
.game-view-page #requirements .requirement-row strong {color: var(--spec-copy);}
html[data-theme] .game-view-page :is(.resource-disclaimer,.resource-heading-actions a.resource-help) {color: var(--text-muted);}
html[data-theme] .game-view-page .resource-heading-actions a.resource-help:hover {color: var(--link-text);}
.game-view-page .resource-disclaimer {border-color: var(--border-light); font-size: 12.5px;}
.game-view-page .resource-disclaimer p + p {margin-top: .65em;}
.game-view-page #resources > .resource-heading-row {
    flex-flow: row wrap; align-items: center; gap: 4px 12px; margin-inline-end: calc(var(--resource-row-inset) + 1px);
}
.game-view-resource-heading-label {display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px;}
.game-view-page #resources .game-view-resource-heading-label h2 {margin: 0;}
.game-view-page #resources .game-view-resource-heading-label .resource-help {white-space: nowrap;}
.game-view-steam-purchase {
    display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; margin-inline-start: auto;
    width: var(--resource-button-width); height: var(--resource-button-height);
    padding: 5px 8px; border: 1px solid var(--border-normal); border-radius: 7px; background: var(--bg-soft);
    color: var(--text-primary); font-size: 12px; font-weight: 500; text-decoration: none;
}
.game-view-steam-purchase:hover {background: var(--bg-hover); border-color: var(--accent-border);}
.game-view-steam-purchase {white-space: nowrap;}
.game-view-steam-purchase img {flex: 0 0 auto; display: block; border-radius: 5px;}
.game-view-page #related {container: game-view-related / inline-size;}
.game-view-page #related .related-grid {grid-template-columns: repeat(4,minmax(0,1fr));}
@container game-view-related (width < 940px) {
    .game-view-page #related .related-grid {grid-template-columns: repeat(3,minmax(0,1fr));}
}
@container game-view-related (width < 650px) {
    .game-view-page #related .related-grid {grid-template-columns: repeat(2,minmax(0,1fr));}
}
.game-view-page #related .game-card {box-shadow: none;}
.game-view-page #related .game-card h3 {font-weight: 600; line-height: 1.35;}
.game-view-page #related .game-card-category {color: var(--tag-text); background: var(--tag-bg); border-color: var(--accent-border);}
.game-view-page #related .game-card:hover {background: var(--bg-hover); border-color: var(--accent-border); box-shadow: var(--shadow-sm);}
.game-view-page .resource-item {
    display: grid; grid-template-columns: minmax(0,1fr); gap: 0;
    min-height: 0; padding: 0; overflow: hidden;
    background: var(--bg-soft); border: 1px solid var(--border-normal); border-radius: 10px;
}
.game-view-page .game-view-resource-upper {min-width: 0; padding: 12px var(--resource-row-inset); background: var(--bg-soft);}
.game-view-page .game-view-resource-info {
    min-width: 0; margin: 0 0 9px; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: center;
}
.game-view-page .resource-item .resource-provider {display: flex; align-items: center; gap: 7px; min-width: 0;}
.game-view-page .resource-item .resource-provider-icon {width: 23px; height: 23px;}
.game-view-page .resource-provider-name {min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px;}
html[data-theme] .game-view-page .resource-provider-name {color: var(--text-secondary);}
.game-view-page .game-view-resource-line {display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0;}
.game-view-page .resource-item .resource-title {
    display: block; flex: 1 1 auto; align-self: center; min-width: 0; max-width: 100%; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--text-primary);
}
.game-view-page .game-view-resource-report {
    display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 4px;
    max-width: 100%; margin-inline-start: auto; color: var(--text-muted); font-size: 11px; line-height: 1.4;
}
html[data-theme] .game-view-page .resource-item .resource-report-button {
    display: inline-flex; align-items: center; min-height: 24px; width: auto; height: auto; min-width: 0;
    color: var(--text-muted); font: inherit; text-decoration: none;
    margin: 0; padding: 0; border: 0; background: transparent; opacity: 1; transition: none;
}
.game-view-report-label {
    display: inline-flex; align-items: center; gap: 2px; line-height: 1; border-bottom: 1px solid currentColor;
}
.game-view-page .game-view-report-label .resource-report-icon {width: 12px; height: 12px;}
html[data-theme] .game-view-page .resource-item .resource-report-button:hover {color: var(--link-text);}
html[data-theme] .game-view-page .resource-item .resource-link {
    flex: 0 0 auto; width: var(--resource-button-width); height: var(--resource-button-height); min-height: var(--resource-button-height);
    margin-left: auto; padding: 0 14px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    background: var(--button-bg); color: var(--button-text); border-color: transparent; box-shadow: none; transition: none;
}
html[data-theme] .game-view-page .resource-item .resource-link:hover {transform: none; background: var(--button-hover); color: var(--button-text); border-color: var(--link-text);}
.game-view-stage-play {position: relative; grid-area: 1 / 1; border: 0; cursor: pointer; padding: 0; background: var(--gallery-bg); min-height: 0; color: #fff;}
.game-view-stage-play img {display: block; width: 100%; height: 100%; object-fit: cover;}
.game-view-stage-play-icon {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: #101820bb; color: white; font-size: 22px;
}
.game-view-video-status {
    position: absolute; left: 14px; bottom: 13px; max-width: calc(100% - 28px); text-align: left;
    background: #101820c9; color: #fff; font-size: 12px; padding: 5px 8px; border-radius: 5px;
}
.game-view-video-status {z-index: 1;}
.game-view-stage :focus-visible {outline-offset: -3px;}
 .game-view-toast {
    position: fixed;
    z-index: 400;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: min(90vw, 440px);
    padding: 10px 16px;
    border: 1px solid var(--border-normal);
    border-radius: 8px;
    background: var(--bg-card-strong);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}

@media (min-width: 761px) {
    .game-view-facts div {border-top-color: var(--detail-divider);}
    .game-view-page .game-view-rank.home-page .rank-item {border-bottom-color: var(--detail-divider);}
    html[data-theme] .game-view-page .resource-provider-name {color: var(--text-primary); font-weight: 600;}
}
@media (max-width: 760px) {
    .game-view-page {
        --panel-inset: 12px;
        --spec-copy: var(--compact-spec-copy);
        --resource-button-height: 44px;
        --resource-button-width: 120px;
        --resource-row-inset: 9px;
        width: min(740px, calc(100% - 20px)); margin-top: 12px;
    }
    .game-view-overview {grid-template: "media" auto "actions" auto "details" auto "body" auto / minmax(0, 1fr); gap: 9px; margin-bottom: 15px;}
    .game-view-heading {display: none;}
    .game-view-journey,.game-view-left-column,.game-view-right-column,.game-view-rail {display: contents;}
    .game-view-media {grid-area: media;}
    .game-view-body-column {grid-area: body; margin-right: 0; padding-top: 0;}
    .game-view-rank {display: none;}
    .game-view-crumb {display: none;}
    .game-view-title h1 {font-size: 20px; font-weight: 600;}
    html[data-theme] .game-view-title .english-title {font-size: 11px; font-weight: 400; margin-top: 3px;}
    .game-view-mobile-actions {display: block; grid-area: actions;}
    .game-view-actions button {min-height: 44px; font-size: 11.5px; font-weight: 500;}
    .game-view-cover {display: none;}
    .game-view-details {grid-area: details; min-height: 0; padding: var(--panel-inset); gap: 7px;}
    .game-view-summary p {font-size: 12.5px; line-height: 1.55;}
    html[data-theme] .game-view-page .game-view-introduction-content {font-size: 13px; line-height: 1.55;}
    .game-view-page :is(#requirements,#introduction,#versionIntroduction,#resources,#mods,#related) h2 {font-size: 14px; font-weight: 500; margin-bottom: 8px;}
    .game-view-page .detail-section {padding: 13px var(--panel-inset); margin-bottom: 12px;}
    .game-view-page .game-view-body-toggle {
        width: calc(100% + 2 * var(--panel-inset)); margin-inline: calc(-1 * var(--panel-inset)); font-size: 11.5px; font-weight: 500;
    }
    html[data-theme="light"] .game-view-page .detail-section:not(#requirements) {
        border: 0; border-top: 1px solid var(--border-light); border-radius: 0; box-shadow: none;
    }
    .game-view-page #requirements .requirement-card h3 {font-size: 12.5px; font-weight: 500;}
    .game-view-page #requirements .requirement-card + .requirement-card {border-top: 0; padding-top: 0;}
    .game-view-page #requirements .requirement-row {font-size: 11.5px;}
    .game-view-page #requirements .requirement-row strong {font-weight: 400;}
    .game-view-page #requirementsGrid[data-collapsed] .requirement-card ~ .requirement-card,
    .game-view-page #requirementsGrid[data-collapsed] .requirement-row:not(.game-view-spec-visible) {display: none;}
    .game-view-page .resource-item .resource-title {font-size: 12px; font-weight: 500;}
    .game-view-page .game-view-resource-report {font-size: 10.5px;}
    .game-view-steam-purchase {font-size: 11.5px;}
    .game-view-page :is(#resources,#mods) {padding-inline: 9px;}
    .game-view-page #resources > .resource-heading-row {margin-inline-start: 3px;}
    .game-view-page #mods > .section-heading-row,.game-view-page .resource-disclaimer {margin-inline: 3px;}
    .game-view-page .game-view-resource-upper {padding-block: 6px;}
    .game-view-page .game-view-resource-info {margin-bottom: 3px;}
    .game-view-page .resource-provider-name {font-size: 12px;}
    html[data-theme] .game-view-page .resource-item .resource-link {font-size: 12px; font-weight: 500;}
    html[data-theme] .game-view-page .resource-item .resource-report-button {min-height: 33px;}
    .game-view-page .resource-disclaimer {font-size: 12px; line-height: 1.6;}
    .game-view-stage-play-icon {width: 46px; height: 46px; font-size: 17px;}
    .game-view-facts {grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 10px; font-size: 11.5px;}
    .game-view-facts div {grid-template-columns: minmax(0,1fr); gap: 1px; padding: 4px 0;}
    .game-view-facts .game-view-type-row {grid-column: 1 / -1;}
    .game-view-category-links :is(a,span) {font-size: 12px;}
    .game-view-thumbnails button {flex-basis: 62px;}
    .game-view-page #related .related-grid {gap: 14px 9px;}
    .game-view-page #related .game-card {
        overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none;
    }
    .game-view-page #related .game-card:hover {background: transparent; box-shadow: none; transform: none;}
    .game-view-page #related .game-card img {border-radius: 6px;}
    .game-view-page #related .game-card h3 {padding: 5px 0 0; font-size: 12.5px; font-weight: 500;}
    .game-view-page #related .game-card-categories {padding: 3px 0 0;}
    .game-view-page #related .game-card-category {font-size: 11px; padding: 0 6px;}
    .game-view-page #related .game-card-divider {background: transparent;}
    .game-view-page #related .game-card-meta {flex-wrap: wrap; justify-content: flex-start; gap: 2px 7px; min-height: 0; padding: 3px 0 0; font-size: 11px; line-height: 1.4;}
}
.game-view-search-trigger {display: none;}
@media (max-width: 760px) {
    body[data-modern-detail] .navbar .nav-inner {
        grid-template-columns: minmax(0,1fr) 34px 34px 34px;
        gap: 7px; align-items: center; padding-block: 8px; max-width: calc(100% - 22px);
    }
    body[data-modern-detail] .navbar .logo-title {font-size: clamp(14px,4vw,20px);}
    body[data-modern-detail] .navbar .logo small {font-size: 9px;}
    body[data-modern-detail] .navbar .game-view-search-trigger:not([hidden]) {
        grid-column: 2; grid-row: 1; width: 34px; height: 34px; display: grid; place-items: center;
        border: 1px solid var(--border-normal); border-radius: 8px; background: var(--bg-input);
        color: var(--text-primary); cursor: pointer;
    }
    .game-view-search-trigger svg {width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;}
    body[data-modern-detail] .navbar .header-actions .search-box {display: none; grid-column: 1/-1; grid-row: 2;}
    body[data-modern-detail] .navbar .header-actions .search-box[data-open] {display: block;}
    body[data-modern-detail] .navbar .header-actions .search-box input {height: 36px; padding: 0 8px 0 30px; font-size: 16px;}
    body[data-modern-detail] .navbar .search-box .header-search-icon {left: 9px; width: 15px; height: 15px;}
    body[data-modern-detail] .navbar .theme-toggle {grid-column: 3; width: 34px; height: 34px;}
    body[data-modern-detail] .navbar .nav-toggle {grid-column: 4; width: 34px; height: 34px; padding: 5px;}
    body[data-modern-detail] .navbar .nav-inner nav {grid-row: 3;}
}
@media (max-width: 600px) {
    .game-view-arrow {min-width: 32px; min-height: 40px;}
    .game-view-prev {left: 7px;}
    .game-view-next {right: 7px;}
    .game-view-counter {top: 8px; right: 8px;}
}

/* Optional plain-text notes about the supplied game version. */
.game-version-content{white-space:pre-wrap;overflow-wrap:anywhere}
/* Shared resource QR dialog for both detail renderers. */
.resource-access-dialog{box-sizing:border-box;margin:auto;width:min(390px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:28px 24px 24px;border:1px solid var(--border-color,#37373e);border-radius:16px;background:var(--bg-card,#202026);color:var(--text-primary,#f2f2f6);text-align:center;overflow:auto}
.resource-access-dialog::backdrop{background:rgba(0,0,0,.65)}
.resource-access-dialog h2{margin:0 24px 12px;font-size:20px;line-height:1.5}
.resource-access-close{position:absolute;right:12px;top:10px;display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:8px;background:transparent;color:inherit;font-size:27px;cursor:pointer}
.resource-access-name{margin:0 0 16px;font-size:14px;line-height:1.6;overflow-wrap:anywhere;color:var(--text-secondary,#b5b5c0)}
.resource-access-code{width:min(288px,100%);aspect-ratio:1;margin:auto;background:#fff;border-radius:8px;overflow:hidden}
.resource-access-code img{display:block;width:100%;height:auto}
.resource-access-code img[hidden]{display:none}
.resource-access-status{min-height:22px;margin:14px 0 18px;font-size:13px;line-height:1.6;color:var(--text-secondary,#b5b5c0)}
.resource-access-actions{display:flex;gap:10px}
.resource-access-actions a,.resource-access-actions button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex:1;min-height:42px;padding:8px 12px;border:1px solid var(--border-color,#37373e);border-radius:8px;background:transparent;color:inherit;text-decoration:none;font:inherit;font-size:14px;cursor:pointer}
.resource-access-actions a{background:#4db7f3;border-color:#4db7f3;color:#101820}
.resource-access-dialog :focus-visible{outline:2px solid #4db7f3;outline-offset:3px}
html[data-theme="light"] .resource-access-dialog{background:#fff;color:#20202a;border-color:#d9dfe5}
html[data-theme="light"] .resource-access-name,html[data-theme="light"] .resource-access-status{color:#586270}
html[data-theme="light"] .resource-access-actions button{border-color:#d9dfe5}
