/* PVPGRAM V4: restrained forum proportions, custom SVG icons and badges, accessible content. */
:root{--v4-ink:#301643;--v4-purple:#5a2386;--v4-lav:#f4effd;--v4-line:#ddd0ef;--v4-gold:#ffd04b}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
img,svg,video,iframe{max-width:100%}
.panel,.panel-body,.panel-head,.columns,.columns>.primary,.columns>.aside,.topic-row,.server-row,.post-inner,.sv-post-inner{min-width:0;max-width:100%}
.panel-body{overflow:visible}
.panel-head h2{display:flex;align-items:center;gap:9px;flex-wrap:wrap;min-width:0;overflow-wrap:anywhere}
.panel-head h2>.i{color:#f8d282}
.panel-status-icon{width:24px;height:24px;max-width:24px;flex:0 0 24px;object-fit:contain;filter:drop-shadow(0 1px 2px #1806283d)}
.footer-heading{display:flex;gap:9px;align-items:center;color:#ffe093!important;line-height:1.25}
.footer-heading>.i{color:#ffcf55;flex:none}
/* Forum prefixes inside the title group; they may wrap but can never overlap. */
.topic-row{grid-template-columns:38px minmax(0,1fr) 116px 118px!important;gap:10px!important;align-items:center!important;padding:12px!important;min-height:76px!important;overflow:hidden}
.topic-row>.topic-avatar{grid-column:1;grid-row:1;align-self:center}
.topic-row>.topic-body{grid-column:2;grid-row:1;min-width:0;width:100%;overflow:hidden}
.topic-entry-head{display:flex;align-items:center;gap:7px 12px;flex-wrap:wrap;min-width:0;width:100%}
.topic-entry-head>.topic-category{flex:0 1 auto;min-width:0;max-width:100%;display:inline-flex!important;position:static;align-items:center;margin:0}
.topic-entry-head>.topic-category>.game-tag{display:inline-flex;white-space:normal;line-height:1.25;max-width:100%;font-size:10.5px;overflow-wrap:anywhere;padding:5px 9px;border-radius:8px;position:static}
.topic-entry-head>.topic-title{flex:1 1 180px;width:auto;display:-webkit-box;max-width:100%;min-width:0;white-space:normal;overflow:hidden;overflow-wrap:anywhere;line-height:1.45;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12.5px;margin:0}
.topic-entry-head>.topic-title .i{margin-right:5px;color:#7727bd}
.topic-row>.topic-body>small{display:-webkit-box;min-width:0;overflow:hidden;white-space:normal;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:4px;font-size:11px;line-height:1.35}
.topic-row>.topic-stats{grid-column:3;grid-row:1;display:flex;justify-content:flex-start;gap:8px;align-content:center;align-items:center;flex-wrap:wrap;border-left:1px solid #e3dbed;padding-left:10px;font-size:11px}
.topic-row>.topic-stats>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.topic-row>.topic-author{grid-column:4;grid-row:1;overflow-wrap:anywhere;word-break:normal;font-size:10.5px;padding-left:3px;display:flex!important;gap:3px;line-height:1.35}
.topic-row>.topic-author>small{font-size:10px;margin-left:0}
/* Distinct icons follow actual current server state, never alter content images. */
.server-row .server-title{display:-webkit-box;overflow:hidden;overflow-wrap:anywhere;white-space:normal;max-width:100%;min-width:0;line-height:1.4;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.server-row .server-state-icon{display:inline-block!important;width:20px!important;height:20px!important;max-width:20px!important;max-height:20px!important;margin-right:5px;vertical-align:-5px;object-fit:contain;filter:drop-shadow(0 1px 1px #33204835)}
.server-row .server-row-content,.server-row .server-metrics,.server-row .server-author,.server-row .server-date{min-width:0;overflow-wrap:anywhere}
.server-row .server-game{min-width:0;overflow:hidden}
.server-row .server-game .game-tag{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.server-row .server-summary{overflow:hidden;text-overflow:ellipsis}
.server-row .server-actions{min-width:0}
.server-row .server-actions form{max-width:100%;margin:0}
/* Server information panel: colored vector emblem for each label. */
.info-line-v4{min-height:44px;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(65px,auto);align-items:center;gap:8px;padding:7px 4px!important}
.info-line-v4 .info-label{display:flex;align-items:center;gap:9px;font-weight:650;min-width:0;font-size:11.5px;color:#4a355d;overflow-wrap:anywhere}
.info-icon{height:29px;width:29px;flex:0 0 29px;border:1px solid #e5d6f4;background:linear-gradient(140deg,#f3e8ff,#faf7ff);border-radius:9px;display:inline-flex;justify-content:center;align-items:center;color:#6e249b}
.info-line-v4 b,.info-line-v4 .info-value-link{text-align:right;max-width:100%;overflow-wrap:anywhere;word-break:break-word;font-size:11.5px;line-height:1.4;font-weight:800}
.info-value-link{color:#6c279b;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.sv-author-link{color:inherit;text-decoration:underline;text-decoration-color:#ffffff80;text-underline-offset:3px;font-weight:750}
.sv-author-link:hover{color:#ffe0a1}
.sv-owner-name{font-size:12.5px;color:#63228e;font-weight:900;display:inline-block;max-width:100%;overflow-wrap:anywhere}
.sv-owner-name:hover,.info-value-link:hover{text-decoration:underline;color:#9b3fd1}
.sv-owner-details{max-width:100%;overflow-wrap:anywhere}
.sv-reply-person .sv-owner-name{font-size:11px}
.sv-post-footer>span{font-weight:850;color:#652d97}
/* Original account panel compact, premium badges with stable dimensions. */
.badges-v3{gap:10px}
.badge-v3{display:grid!important;grid-template-columns:69px minmax(0,1fr)!important;min-height:86px;align-items:center;gap:10px;border:1px solid #e5d8ef;background:linear-gradient(110deg,#fff,#f8f4fd)!important;box-shadow:0 2px 8px #23103a0b;padding:9px!important;border-radius:12px}
.badge-v3>img{width:67px!important;height:76px!important;max-width:67px!important;object-fit:contain;filter:drop-shadow(0 3px 4px #30144530)}
.badge-v3 strong{font-size:12.5px;color:#361653;line-height:1.4}
.badge-v3 small{font-size:11px;line-height:1.4;color:#756684}
/* Rules and tips use vector icons, no emoji fallback columns. */
.rules-v4,.tips-v4{display:grid;gap:7px;padding:9px}
.rules-v4>.rule-v4{margin:0;padding:10px 8px;display:grid;grid-template-columns:34px minmax(0,1fr) 20px;gap:9px;align-items:center;border:1px solid #ece2f3;background:#faf7ff;border-radius:10px;color:#463452;font-size:12px;line-height:1.45}
.rule-icon,.tip-icon{width:34px;height:34px;display:grid;place-items:center;flex:none;border-radius:10px;background:linear-gradient(145deg,#edddfc,#f6eeff);border:1px solid #dec7f5;color:#7d2bb2}
.rule-check{color:#139464}
.tips-v4>.tip-v4{margin:0;display:flex;align-items:flex-start;gap:11px;padding:11px 9px;border:1px solid #e9dff2;border-radius:10px;background:linear-gradient(115deg,#fff,#f9f5ff)}
.tips-v4 .tip-v4>b,.tips-v4 .tip-v4>span>b{display:block;color:#43245e;font-size:12.5px;line-height:1.25}
.tips-v4 .tip-v4>span>small{display:block;color:#70627c;margin-top:5px;font-size:11px;line-height:1.5}
.promo-card h3{display:flex;align-items:center;gap:7px;overflow-wrap:anywhere}
/* First-party outbound page */
.outbound-card{max-width:660px;margin:42px auto 70px;padding:34px 28px;background:white;box-shadow:0 12px 40px #32125c20;border:1px solid #d9cbea;border-radius:22px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px}
.outbound-emblem{display:grid;place-items:center;width:77px;height:77px;background:linear-gradient(140deg,#6c289c,#40256e);color:#ffdb73;border-radius:23px}
.outbound-card h1{font-size:clamp(20px,4vw,29px);line-height:1.3;color:#3b1759;overflow-wrap:anywhere;margin:5px 0 0}
.outbound-card p{font-size:13px;color:#6e6279;line-height:1.65;margin:0;overflow-wrap:anywhere}
.outbound-count{font-size:64px;font-weight:900;line-height:1;color:#7330aa;border:4px solid #e7d9f5;background:#faf7ff;width:118px;height:118px;display:grid;place-items:center;border-radius:50%;font-variant-numeric:tabular-nums}
.outbound-card .outbound-domain{font-weight:900;font-size:14px;color:#5e3280;background:#f4ebfd;padding:9px 17px;border-radius:10px}
.outbound-card .btn{width:min(100%,290px);justify-content:center;display:inline-flex;align-items:center;gap:8px}
/* Public member profile */
.public-user-hero{background:linear-gradient(108deg,#321351,#752ca5);border-radius:16px;color:white;padding:24px;display:flex;align-items:center;gap:18px;margin:18px 0;box-shadow:0 8px 20px #32125b25}
.public-user-avatar{flex:0 0 88px;width:88px;height:88px;border:3px solid #dfc2fa;box-shadow:0 2px 12px #210f492e;border-radius:22px;display:grid;place-items:center;background:#9a62d4;color:white;font-weight:900;font-size:36px;overflow:hidden}
.public-user-avatar img{width:100%;height:100%;object-fit:cover}
.public-user-title{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.public-user-title h1{font-size:26px;margin:0;overflow-wrap:anywhere}
.public-user-hero p{margin:5px 0;font-size:12px;color:#f3e9fa;overflow-wrap:anywhere}
.user-public-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.user-public-stats>div{border-radius:12px;background:#fff;border:1px solid #e5d9f0;display:flex;gap:7px;flex-direction:column;align-items:center;justify-content:center;padding:18px 10px;color:#7029a5}
.user-public-stats strong{font-size:25px;color:#3d1b59}
.user-public-stats small{font-size:11px;color:#756784;text-align:center}
/* Compact standalone login and register cards, matching earlier user-preferred screen */
body.auth-only-page{min-height:100vh;margin:0;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 18%,#f9f6ff 0%,#f2edfb 74%,#eae4f7 100%);font-size:14px}
.auth-only-shell{width:min(420px,calc(100% - 28px));padding:20px 0 32px}
.auth-only-shell .auth-back-link{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#67318c;font-weight:800;margin-bottom:15px}
.auth-only-shell .auth-back-link>.i{transform:rotate(180deg)}
.auth-only-shell .auth-card-v4{margin:0;max-width:100%;width:100%;padding:28px 30px 26px;border-radius:18px;box-shadow:0 15px 45px #361a5a23;border:1px solid #ddd1ed}
.auth-logo-v4{width:62px;height:62px;margin:0 auto 11px;display:grid;place-items:center;background:linear-gradient(145deg,#e7d9f6,#fff6de);border:1px solid #ead4ad;border-radius:18px}
.auth-logo-v4 img{height:50px;width:50px;object-fit:contain}
.auth-card-v4 h1{font-size:25px;color:#4d187e;margin:5px 0}
.auth-card-v4>p{font-size:12px;color:#776985;margin:3px 0 20px}
.auth-card-v4>p strong{color:#5e2795}
.auth-card-v4 label{font-weight:800;color:#362049;font-size:12px;margin:11px 0}
.auth-card-v4 input{height:44px;min-width:0;width:100%;border-radius:9px;border:1px solid #d7c7e8;background:#fff;padding:10px 12px;font-size:13px}
.auth-card-v4 .btn{height:45px;display:flex;align-items:center;justify-content:center;gap:7px;border-radius:9px;font-weight:900;margin-top:17px;width:100%}
.auth-card-v4 .auth-switch{margin:17px 0 0;font-size:12px}
.auth-card-v4 .auth-forgot{display:inline-block;font-size:11px;margin-top:11px}
/* Admin image controls */
.v4-admin-tip{font-size:13px;color:#75627e;margin:12px 16px}
.v4-icons-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;padding:13px}
.v4-icon-admin-card{background:#faf8ff;border:1px solid #ddd1eb;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:10px;min-width:0}
.v4-icon-admin-card h3{margin:0;color:#4b1b70;font-size:15px}
.v4-icon-preview{min-height:95px;border:1px dashed #bba1dd;background:white;border-radius:12px;display:grid;place-items:center}
.v4-icon-preview img{max-height:85px;max-width:85px;object-fit:contain}
.v4-icon-admin-card label{font-size:12px;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.v4-icon-admin-card input[type=file]{width:100%;font-size:12px}
.v4-icon-admin-card input[type=checkbox]{width:16px;height:16px;flex:none}
.v4-icons-form>.btn{grid-column:1/-1;justify-self:start}
@media(max-width:900px){
 .topic-row{grid-template-columns:36px minmax(0,1fr) 100px!important}
 .topic-row>.topic-author{display:none!important}
 .topic-row>.topic-stats{grid-column:3}
 .topic-entry-head>.topic-title{flex-basis:160px}
}
@media(max-width:690px){
 .topic-row{grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:6px 10px!important;padding:11px!important}
 .topic-row>.topic-avatar{grid-column:1;grid-row:1/3;align-self:start}
 .topic-row>.topic-body{grid-column:2;grid-row:1}
 .topic-row>.topic-stats{grid-column:2;grid-row:2;padding:0;border:0;gap:12px}
 .topic-entry-head{align-items:flex-start;gap:5px 8px}
 .topic-entry-head>.topic-title{flex:1 1 145px;font-size:12px}
 .topic-entry-head>.topic-category>.game-tag{font-size:10px;padding:3px 7px}
 .topic-row>.topic-body>small{margin-top:3px}
 .info-line-v4{grid-template-columns:minmax(0,1fr) minmax(55px,auto)}
 .badge-v3{grid-template-columns:60px minmax(0,1fr)!important;gap:7px}
 .badge-v3>img{width:58px!important;height:64px!important}
 .v4-icons-form{grid-template-columns:1fr}
 .public-user-hero{padding:15px;gap:12px}
 .public-user-avatar{flex-basis:62px;width:62px;height:62px;font-size:27px;border-radius:15px}
 .public-user-title h1{font-size:20px}
 .outbound-card{margin:14px auto 28px;padding:23px 15px}
}
@media(max-width:450px){
 .topic-row{grid-template-columns:28px minmax(0,1fr)!important}
 .topic-row>.topic-avatar{width:28px;height:28px;font-size:12px}
 .topic-entry-head>.topic-title{flex-basis:100%;font-size:12px}
 .user-public-stats{gap:6px}
 .user-public-stats>div{padding:12px 6px}
 .user-public-stats strong{font-size:21px}
 .user-public-stats small{font-size:10px}
 .public-user-hero{flex-wrap:wrap}
 .v4-icons-form>.btn{justify-self:stretch}
}
