/* ManiaGrania scoped beta layout corrections, 2026-10-24 */
/* Avoid altering the existing ACP, routes or advertisement logic. */
.mg-v3-feature-row{align-items:stretch!important}
.mg-v3-verified,.mg-v3-partners{min-height:0!important;height:auto!important;align-self:stretch!important}
.mg-v3-verified .mg-v3-server-grid{grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;align-items:stretch;gap:9px}
.mg-v3-verified .mg-v3-empty{grid-column:1/-1;min-height:0!important;margin:0;padding:14px 8px!important}
.mg-v3-verified .mg-v3-server-grid:not(:has(.mg-v3-empty))>.mg-v3-server{min-height:100px!important;height:auto!important}
.mg-v3-partners .mg-v3-partner-grid a{min-height:75px!important}
/* Category list: a clearly identifiable action in each of the 12 rankings */
.mg-connect-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:8px 12px;border-radius:8px;background:#ff942d;color:#101725!important;text-decoration:none!important;font:700 12px Inter,Arial,sans-serif;white-space:nowrap;border:1px solid #ffad4f}
.mg-connect-btn:hover,.mg-connect-btn:focus-visible{background:#ffb453;outline:2px solid #ffb453;outline-offset:2px}
/* Dedicated connect page: shared brand, consistent typography and accessible buttons */
body.mg-connect-page{margin:0!important;max-width:none!important;padding:0!important;min-height:100vh;background:#0c1526;color:#f4f7ff;font:16px Inter,Arial,sans-serif}
.mg-connect-wrap{max-width:960px;margin:0 auto;padding:36px 24px 64px;box-sizing:border-box}
.mg-connect-page .mg-global-logo{display:inline-flex!important;width:max-content;max-width:100%;gap:12px!important;vertical-align:middle}
.mg-connect-page .mg-global-logo__emblem{width:58px;height:58px}
.mg-connect-page .mg-global-logo__svg{width:45px;height:45px}
.mg-connect-page .mg-global-logo__wordmark{display:flex!important;flex-direction:column!important;gap:5px!important}
.mg-connect-page .mg-global-logo__name{font-size:clamp(24px,3.3vw,37px)!important;line-height:1!important}
.mg-connect-page .mg-global-logo__wordmark small{font-size:10px!important;letter-spacing:1.4px!important}
.mg-connect-page main{max-width:760px;margin-top:38px!important}
.mg-connect-page h1{font-size:clamp(26px,4vw,40px);line-height:1.18;overflow-wrap:anywhere}
.mg-connect-page main a[href^="steam:"],.mg-connect-page main a[href^="fivem:"],.mg-connect-page main a[href^="mtasa:"]{text-decoration:none!important;border:1px solid #ffc16d;line-height:1.35}
.mg-connect-page main a:hover{filter:brightness(1.08)}
@media(max-width:1000px){.mg-v3-feature-row{grid-template-columns:1fr!important}}
@media(max-width:760px){.mg-v3-verified .mg-v3-server-grid:not(:has(.mg-v3-empty)){grid-template-columns:repeat(2,minmax(0,1fr))}.mg-connect-wrap{padding:24px 16px 48px}}

/* Five real slots, left to right; no full-width empty card */
.mg-v3-verified .mg-v3-server-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:9px!important;align-items:stretch!important}
.mg-v3-verified .mg-v3-server{grid-column:auto!important;min-width:0;min-height:100px!important;height:auto!important;box-sizing:border-box;text-align:center;justify-content:center}
.mg-v3-verified .mg-v3-server--vacant{border-style:dashed;text-decoration:none;color:#fff}
.mg-v3-verified .mg-v3-server--vacant:hover{border-color:#ff962c;background:#12243a}
@media(max-width:760px){.mg-v3-verified .mg-v3-server-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){.mg-v3-verified .mg-v3-server-grid{grid-template-columns:1fr!important}}

.mg-vote-btn{display:inline-flex;padding:8px 10px;margin-right:5px;border:1px solid #38516d;border-radius:8px;color:#dbe9ff;text-decoration:none;white-space:nowrap;font:700 12px Inter,Arial,sans-serif}.mg-vote-btn:hover{border-color:#ff962c;color:#ff962c}
