/* home4 — extends home.css */
body .wrap:has(.hp4) { max-width: 1320px; }

/* ── Hero split (symmetric padding) ── */
.hp4-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 430px;
    margin-bottom: 28px;
    background: var(--bg1);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
}
.hp4-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ac), transparent);
    z-index: 2;
    pointer-events: none;
}

.hp4-hero-left {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--border);
    background:
        radial-gradient(ellipse 80% 60% at 0% 100%, var(--ac05) 0%, transparent 70%),
        var(--bg1);
}
.hp4-kicker {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ac);
    margin: 0 0 14px;
}
.hp4-hero-left h1 {
    font-size: 2.28rem;
    font-weight: 900;
    letter-spacing: -.8px;
    line-height: 1.12;
    margin: 0 0 16px;
    text-align: center;
}
.hp4-hero-left h1 span {
    background: linear-gradient(135deg, var(--ac), #7c8ae8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hp4-lead {
    font-size: .9rem;
    color: var(--text2);
    line-height: 1.65;
    margin: 0 0 24px;
    max-width: 500px;
}
.hp4-search {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 22px;
}
.hp4-search input {
    padding: 12px 44px 12px 16px;
    font-size: .84rem;
    border-radius: 10px;
}
.hp4-search button {
    width: 32px;
    height: 32px;
    right: 5px;
    border-radius: 7px;
}
.hp4-search button svg {
    width: 14px;
    height: 14px;
}
.hp4-hero-left .hp-hero-stats {
    justify-content: center;
    margin-top: 0;
}
.hp4-hero-left .hp-hs {
    font-size: .82rem;
}
.hp4-hero-left .hp-hs-v {
    font-size: .9rem;
}

/* Game panels */
.hp4-hero-games {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 430px;
}
.hp4-game {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    transition: z-index 0s, filter .3s ease;
}
.hp4-game img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    color: transparent;
    font-size: 0;
    filter: brightness(0.62);
    transition: transform .45s ease, filter .35s ease;
}
.hp4-game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 11, 15, 0.95) 10%, rgba(11, 11, 15, 0.4) 50%, transparent 100%);
    transition: background .35s ease;
    z-index: 1;
    pointer-events: none;
}
.hp4-game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 14px 20px 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
    text-align: left;
}
.hp4-game-2 .hp4-game-info,
.hp4-game-3 .hp4-game-info {
    padding-left: 20px;
}
.hp4-game-label {
    font-size: 1.12rem;
    font-weight: 900;
    letter-spacing: -.2px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 1px 10px rgba(0, 0, 0, 0.6);
}
.hp4-game-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: .68rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.hp4-gs-line {
    display: block;
    white-space: nowrap;
    line-height: 1.45;
}
.hp4-game-stat b {
    font-family: var(--mono);
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.hp4-game-stat .hp4-gs-line:first-child b:last-child {
    color: #7dd3a8;
}
.hp4-game-stat .hp4-gs-line:last-child b {
    color: #a5b4fc;
}

.hp4-game-1 {
    background: linear-gradient(135deg, #3a2718, #111827);
    clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    margin-right: -6px;
}
.hp4-game-2 {
    background: linear-gradient(135deg, #4a3420, #151827);
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
    margin-right: -6px;
    z-index: 1;
}
.hp4-game-3 {
    background: linear-gradient(135deg, #6b4a26, #151a24);
    clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%);
    z-index: 2;
}

.hp4-game:hover {
    z-index: 4;
}
.hp4-game:hover img {
    transform: scale(1.06);
    filter: brightness(0.92);
}
.hp4-game:hover .hp4-game-overlay {
    background: linear-gradient(to top, rgba(11, 11, 15, 0.92) 8%, rgba(11, 11, 15, 0.25) 45%, transparent 100%);
}
.hp4-game:hover .hp4-game-label,
.hp4-game:hover .hp4-game-stat {
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

/* ── Tools row ── */
.hp4-block { margin-bottom: 28px; }
.hp4-block-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.hp4-block-head h2 {
    font-size: 1rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -.2px;
}
.hp4-block-head span {
    font-size: .75rem;
    color: var(--text2);
}

/* Readable secondary text — match server page contrast */
.hp4 .hp4-tool p {
    color: var(--text2);
}
.hp4 .hp4-lead {
    color: #b8b8be;
    max-width: 34em;
    line-height: 1.45;
}
.hp4 .hp-card-h .hp-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .64rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 7px;
    border: 1px solid color-mix(in srgb, var(--ac) 45%, var(--border));
    background: color-mix(in srgb, var(--ac) 12%, var(--bg2));
    color: var(--ac);
    text-decoration: none;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.hp4 .hp-card-h .hp-card-btn::after {
    content: '→';
    font-size: .72rem;
    line-height: 1;
}
.hp4 .hp-card-h .hp-card-btn:hover {
    background: var(--ac);
    border-color: var(--ac);
    color: #fff;
}
.hp4 .srv-foot a {
    color: var(--ac);
}

.hp4-tools-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    align-items: stretch;
}
.hp4-tool {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 14px 14px;
    background: var(--bg1);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease, background .22s ease;
    min-height: 0;
    height: 100%;
}
.hp4-tool:hover {
    border-color: color-mix(in srgb, var(--ac) 55%, var(--border));
    background: color-mix(in srgb, var(--ac) 4%, var(--bg1));
    transform: translateY(-2px);
    box-shadow:
        0 0 0 1px color-mix(in srgb, var(--ac) 20%, transparent),
        0 10px 28px rgba(0, 0, 0, 0.14);
}
.hp4-tool-arrow {
    position: absolute;
    top: 11px;
    right: 11px;
    width: 20px;
    height: 20px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transform: rotate(-45deg);
    transition: opacity .22s ease, transform .22s ease, background .22s ease, border-color .22s ease, border-radius .22s ease;
    background: transparent;
    border: none;
    pointer-events: none;
}
.hp4-tool:hover .hp4-tool-arrow {
    opacity: 1;
    transform: rotate(-45deg) translate(2px, -2px);
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--ac);
    border: 1px solid var(--ac);
}
.hp4-tool:hover .hp4-tool-arrow svg path {
    stroke: #fff;
}
.hp4-tool-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}
.hp4-tool-ic {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--ac10);
    border: 1px solid var(--ac15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    flex-shrink: 0;
}
.hp4-tool strong {
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 0;
    color: var(--text);
    line-height: 1.2;
}
.hp4-tool p {
    font-size: .66rem;
    color: var(--text2);
    line-height: 1.5;
    margin: 0;
    max-width: 180px;
}
.hp4-tool-desc {
    flex: 1;
    font-size: .62rem;
    color: var(--text2);
    line-height: 1.45;
    margin: 0;
    width: 100%;
    min-height: 2.9em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Table rows — more breathing room under server name */
.hp4 .srv-r {
    padding: 11px 14px;
}
.hp4 .srv-line2 {
    margin-top: 3px;
    line-height: 1.45;
    font-size: .64rem;
    color: var(--text2);
    font-weight: 500;
}
.hp4 .hp4-line-plain {
    margin-top: 3px;
    line-height: 1.45;
}

/* ── Top Communities rows ── */
.hp4-net-r {
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}
.hp4-net-r .srv-mid {
    min-width: 0;
}
.hp4-net-r .srv-line1 {
    min-width: 0;
    gap: 4px;
}
.hp4-net-r .srv-nm {
    flex-shrink: 0;
    max-width: 58%;
}
.hp4-net-r .srv-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    align-self: stretch;
}
.hp4-net-logo {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: var(--bg2);
    border: 1px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp4-net-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hp4-net-rk {
    display: none;
}
.hp4-net-owner,
.hp4-net-pts {
    font-family: var(--mono);
    font-size: .62rem;
    font-weight: 600;
    color: var(--ac);
    white-space: nowrap;
    flex-shrink: 0;
}
.hp4-net-motto {
    color: #b0b0b6;
    font-size: .62rem;
    line-height: 1.4;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp4-net-games {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-wrap: wrap;
}
.hp4-gc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 7px 4px 5px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: .58rem;
    line-height: 1;
}
.hp4-gc img {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: block;
    flex-shrink: 0;
}
.hp4-gc b {
    font-family: var(--mono);
    font-weight: 700;
    color: var(--text);
    font-size: .64rem;
}
/* ── Latest Reports player avatars ── */
.hp4-report-r {
    align-items: center;
}
.hp4-pl-av {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--ac15), var(--bg3));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .72rem;
    color: var(--ac);
    flex-shrink: 0;
    font-family: var(--mono);
    overflow: visible;
}
.hp4-pl-av::before {
    content: attr(data-fallback);
}
.hp4-pl-av img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}
.hp4-pl-av span:first-child {
    line-height: 1;
}
.hp4-pl-v {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--bg1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.hp4-pl-v.hp4-v-clean {
    background: var(--green);
    color: #fff;
}
.hp4-pl-v.hp4-v-suspicious {
    background: #eab308;
    color: #111827;
}
.hp4-pl-v.hp4-v-cheat {
    background: var(--red);
    color: #fff;
}
.hp4-line-plain {
    padding-left: 0 !important;
}

/* CheatDetector verdict badges */
.hp4-verdict {
    font-size: .58rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.hp4-v-clean { background: rgba(74,222,128,.12); color: var(--green); }
.hp4-v-suspicious { background: rgba(234,179,8,.12); color: #eab308; }
.hp4-v-cheat { background: rgba(239,68,68,.12); color: var(--red); }

/* About — equal vertical padding */
.hp4-about .hp-about-inner {
    align-items: center;
}
.hp4-about .hp-about-text {
    padding: 28px 32px;
}
.hp4-about .hp-about-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-content: center;
    align-self: center;
    justify-content: stretch;
    padding: 28px 28px;
    height: 100%;
}
.hp4-about .hp-about-pill {
    align-items: center;
    padding: 10px 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.hp4-about .hp-about-pill .ic {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .hp4-hero { grid-template-columns: 1fr; }
    .hp4-hero-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 32px 36px;
    }
    .hp4-search { max-width: 100%; }
    .hp4-hero-games { min-height: 260px; }
    .hp4-tools-row { grid-template-columns: repeat(3, 1fr); }
    .hp4-about .hp-about-side { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .hp4-hero-left { padding: 28px 22px; }
    .hp4-hero-left h1 { font-size: 1.55rem; }
    .hp4-hero-games { grid-template-columns: 1fr; min-height: auto; }
    .hp4-game { min-height: 140px; }
    .hp4-game-1, .hp4-game-2, .hp4-game-3 {
        clip-path: none;
        margin-right: 0;
    }
    .hp4-tools-row { grid-template-columns: 1fr; }
    .hp4-tool { min-height: auto; }
}
