/* PSSM v7: IPS-inspired typography, compact icons, practical profile and reactions.
   Works with existing theme and does not alter the site layout. */
html,body,button,input,textarea,select{font-family:system-ui,-apple-system,'Segoe UI',Arial,sans-serif}
body{font-weight:500}
.forum-v3,.forum-page{font-weight:550}
.forum-v3 h1,.forum-v3 h2,.forum-v3 h3,.forum-v3 h4{font-weight:850;letter-spacing:-.035em}
.forum-v3 a,.forum-v3 button{font-weight:700}
.forum-v3 .forum-category-info strong,.forum-v3 .forum-thread-link,.forum-v3 .forum-author-name{font-weight:800}
.forum-v3 .forum-category-info small,.forum-v3 .forum-thread-by{font-weight:550}
.forum-v3 .forum-category-block{overflow:hidden}
.forum-v3 .forum-internal-category{display:flex;align-items:center;min-height:94px;gap:18px;padding:19px 22px;border-bottom:1px solid #343047;transition:background .18s ease}
.forum-v3 .forum-internal-category:hover{background:rgba(125,83,194,.11)}
.forum-v3 .forum-internal-category:last-child{border-bottom:0}
.forum-v3 .forum-internal-category .forum-category-info{flex:1;min-width:0}
.forum-v3 .forum-category-stat{color:#c4afd9;font-size:12px;white-space:nowrap;background:#29243c;border:1px solid #4c3b65;padding:8px 13px;border-radius:7px}
.forum-v3 .forum-round-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:49px;height:49px;border-radius:11px;background:#402b6a;color:#d0b0ff;line-height:1;font-size:20px}
.forum-v3 .forum-round-icon svg{width:24px;height:24px;display:block}
.forum-v3 .forum-round-icon.category-regulaminy{color:#9cc3ff;background:#213c60}
.forum-v3 .forum-round-icon.category-apelacje{color:#ffcf8b;background:#61411e}
.forum-v3 .forum-round-icon.category-skargi{color:#ffa4b7;background:#622938}
.forum-v3 .forum-category-heading{font-weight:800}
/* Center icons and badges without wobble. Only SVG artwork rotates, not the surrounding tag. */
.forum-v3 .pssm-rank-chip,.forum-v3 .forum-author-rank{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;vertical-align:middle;line-height:1.2;white-space:nowrap}
.forum-v3 .pssm-rank-list{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.forum-v3 .pssm-rank-icon,.forum-v3 .pssm-menu-rank-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 16px;width:16px;height:16px;line-height:1!important;text-align:center;vertical-align:middle;position:relative;transform:none}
.forum-v3 .pssm-rank-icon svg,.forum-v3 .pssm-menu-rank-mark svg{display:block;width:16px;height:16px;flex-shrink:0;transform-origin:50% 50%;transform-box:fill-box}
.forum-v3 .pssm-icon-spin{animation:none!important;transform:none!important}
.forum-v3 .pssm-icon-spin svg{animation:none!important}
@keyframes pssm-v7-rotate{to{transform:rotate(360deg)}}
/* Reputation actions: one vote per user and post. */
.forum-v3 .forum-reactions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:22px;padding-top:15px;border-top:1px solid rgba(195,164,239,.14)}
.forum-v3 .reaction-summary{font-size:11px;color:#b1a5c6;font-weight:750;margin-right:4px}
.forum-v3 .reaction-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #493d5e;background:#211c31;color:#d6c7e9;border-radius:6px;min-height:31px;min-width:51px;padding:5px 10px;font-size:12px;font-weight:800;cursor:pointer;transition:background .12s ease,border-color .12s ease}
.forum-v3 .reaction-button:not(:disabled):hover{background:#392850;border-color:#a27bec}
.forum-v3 .reaction-button.is-active{background:#4a2c72;border-color:#b88dff;color:#fff}
.forum-v3 .reaction-button:disabled{opacity:.55;cursor:default}
.forum-v3 .reaction-icon{font-family:'Segoe UI Emoji','Apple Color Emoji',sans-serif;font-size:15px;display:inline-flex;min-width:18px;align-items:center;justify-content:center;line-height:1.25}
.forum-v3 .forum-post-avatar{position:relative;overflow:hidden}
.forum-v3 .forum-post-avatar-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
/* Profile: wide cover, floating avatar, sidebar cards */
.forum-v3 .profile-shell{background:#1c1928;border:1px solid #403651;border-radius:11px;overflow:hidden;box-shadow:0 12px 34px #0002}
.forum-v3 .profile-cover{height:254px;background-position:center;background-size:cover}
.forum-v3 .profile-cover-mark{border-radius:6px}
.forum-v3 .profile-media-action{position:absolute;right:16px;bottom:16px;border-radius:7px;padding:10px 13px;background:#181326db;border:1px solid #80609e;font-size:12px;font-weight:800;z-index:2;color:#eee1ff;backdrop-filter:blur(8px)}
.forum-v3 .profile-media-action:hover{background:#4a3370}
.forum-v3 .profile-avatar{position:relative;overflow:hidden}
.forum-v3 .profile-avatar-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.forum-v3 .profile-identity{align-items:center}
.forum-v3 .profile-stats{justify-content:flex-start}
.forum-v3 .profile-stats>div{min-width:130px}
.forum-v3 #profile-reputation{color:#b88bff}
.forum-v3 .profile-info-layout{grid-template-columns:minmax(0,1.35fr) minmax(290px,.72fr);align-items:start;gap:17px}
.forum-v3 .profile-main-sections,.forum-v3 .profile-sidebar{display:grid;gap:17px}
.forum-v3 .profile-info-layout .account-card{margin:0}
.forum-v3 .profile-game-disclaimer{font-size:11px;line-height:1.6;color:#a89bb8;margin:0 0 15px}
.forum-v3 .profile-data-list{display:flex;flex-direction:column;margin:12px 0 0;padding:0}
.forum-v3 .profile-data-list>div{display:grid;grid-template-columns:minmax(115px,45%) 1fr;align-items:center;gap:13px;border-bottom:1px solid #3d3449;min-height:46px;padding:11px 0}
.forum-v3 .profile-data-list>div:last-child{border-bottom:0}
.forum-v3 .profile-data-list dt{color:#d6cadd;font-size:12px;font-weight:800}
.forum-v3 .profile-data-list dd{color:#f3e9ff;margin:0;font-size:12px;font-weight:650;word-break:break-word}
.forum-v3 .profile-game-card h2{font-size:19px}
/* Settings: media upload and server profile fields */
.forum-v3 .settings-media-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}
.forum-v3 .settings-media-card{display:flex;flex-direction:column;gap:10px;align-items:stretch;background:#1b1827;border:1px solid #453957;border-radius:10px;padding:15px}
.forum-v3 .settings-media-card h3{font-size:16px;margin:0 0 5px}
.forum-v3 .settings-media-card small{color:#aea3bd;font-size:11px;line-height:1.5}
.forum-v3 .settings-media-card .account-primary,.forum-v3 .settings-media-card .account-secondary{min-width:0;text-align:center;justify-content:center;white-space:normal;display:inline-flex;border-radius:7px}
.forum-v3 .media-preview{position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(125deg,#3e2868,#1d1e3f);color:#cbb4fa;border:1px solid #64517d;font-size:36px;font-weight:850}
.forum-v3 .media-preview img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.forum-v3 .media-preview.avatar-preview{aspect-ratio:1/1;max-width:200px;width:100%;margin-inline:auto;border-radius:50%}
.forum-v3 .media-preview.banner-preview{aspect-ratio:2.6/1;border-radius:8px;font-size:23px}
.forum-v3 #settings-game-form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.forum-v3 #settings-game-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:750;color:#e4d8ef}
.forum-v3 #settings-game-form .account-form-actions{grid-column:1/-1}
@media(max-width:900px){.forum-v3 .profile-info-layout{grid-template-columns:1fr}.forum-v3 .settings-media-grid{grid-template-columns:1fr 1fr}}
@media(max-width:650px){.forum-v3 .forum-internal-category{padding:15px 11px;gap:11px;min-height:78px}.forum-v3 .forum-round-icon{width:42px;height:42px}.forum-v3 .forum-round-icon svg{width:20px;height:20px}.forum-v3 .forum-category-stat{padding:5px 6px;font-size:10px}.forum-v3 .profile-cover{height:167px}.forum-v3 .profile-stats{flex-wrap:wrap}.forum-v3 .profile-stats>div{min-width:50%;padding:10px;border-bottom:1px solid #40364d}.forum-v3 .settings-media-grid,.forum-v3 #settings-game-form{grid-template-columns:1fr}.forum-v3 .profile-media-action{font-size:10px;padding:7px 9px}.forum-v3 .pssm-rank-chip{white-space:normal}}
@media(prefers-reduced-motion:reduce){.forum-v3 .pssm-icon-spin svg{animation:none!important}}


/* v8: forum home closer to CodeMTA while keeping PSSM palette */
.forum-v3 .forum-panel-heading h1{font-size:23px}
.forum-v3 .forum-panel-heading .forum-cta{border-radius:10px;box-shadow:0 12px 30px rgba(84,52,156,.18)}
.forum-v3 .forum-category-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;background:#151521;border:1px solid #272738;border-bottom:0;border-radius:16px 16px 0 0;color:#faf6ff;font-size:18px;letter-spacing:-.02em}
.forum-v3 .forum-category-heading-chevron{color:#6f6b84;font-size:18px}
.forum-v3 .forum-category-block{border:1px solid #272738;border-radius:18px;overflow:hidden;background:linear-gradient(180deg,#121320,#0f1020)}
.forum-v3 .forum-internal-category{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:18px;padding:22px 18px 22px 22px;min-height:104px;background:transparent;border-bottom:1px solid rgba(255,255,255,.05);transition:background .22s ease,transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.forum-v3 .forum-internal-category:last-child{border-bottom:0}
.forum-v3 .forum-category-accent{position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:0 999px 999px 0;background:linear-gradient(180deg,#9e69ff,#6a39d4);opacity:0;transform:scaleY(.45);transform-origin:center;transition:opacity .22s ease,transform .22s ease,box-shadow .22s ease}
.forum-v3 .forum-internal-category:hover,.forum-v3 .forum-internal-category:focus-visible{background:linear-gradient(90deg,rgba(84,57,154,.12),rgba(84,57,154,.04) 55%,transparent);transform:translateX(3px)}
.forum-v3 .forum-internal-category:hover .forum-category-accent,.forum-v3 .forum-internal-category:focus-visible .forum-category-accent{opacity:1;transform:scaleY(1);box-shadow:0 0 18px rgba(126,82,225,.45)}
.forum-v3 .forum-round-icon{width:46px;height:46px;border-radius:13px;background:linear-gradient(180deg,#181927,#141522);border:1px solid #34364b;color:#9898ad;box-shadow:inset 0 1px 0 rgba(255,255,255,.03);transition:color .18s ease,border-color .18s ease,transform .18s ease,background .18s ease}
.forum-v3 .forum-round-icon.category-ogloszenia,.forum-v3 .forum-round-icon.category-regulaminy,.forum-v3 .forum-round-icon.category-apelacje,.forum-v3 .forum-round-icon.category-skargi{background:linear-gradient(180deg,#181927,#141522);color:#8f91a8;border-color:#34364b}
.forum-v3 .forum-internal-category:hover .forum-round-icon{color:#d2b8ff;border-color:#6e4ba8;background:linear-gradient(180deg,#242038,#181727);transform:translateY(-1px)}
.forum-v3 .forum-category-info{display:flex;flex-direction:column;gap:6px;min-width:0}
.forum-v3 .forum-category-info strong{font-size:16px;color:#f7f4fd}
.forum-v3 .forum-category-info small{font-size:13px;line-height:1.58;color:#a8a5b8;max-width:640px}
.forum-v3 .forum-highlight-red{color:#ff645f;font-weight:800}
.forum-v3 .forum-highlight-purple{color:#b76dff;font-weight:800}
.forum-v3 .forum-category-admin{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:700;color:#958ea8}
.forum-v3 .forum-admin-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;border:1px solid transparent;line-height:1;font-size:12px;font-weight:850}
.forum-v3 .forum-admin-rcon{background:rgba(146,32,42,.14);border-color:rgba(255,89,100,.22);color:#ff6b73;box-shadow:0 0 0 1px rgba(255,89,100,.05) inset}
.forum-v3 .forum-category-stat{justify-self:end;display:flex;align-items:center;justify-content:center;min-width:88px;padding:0 10px;height:42px;border-radius:11px;background:linear-gradient(180deg,#181927,#12131d);border:1px solid #333548;color:#f3f0f7;font-size:12px;font-weight:850;box-shadow:none}
.forum-v3 .forum-category-stat::before{content:'↗';display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-right:8px;border-radius:999px;background:#1d1f30;color:#80798f;font-size:11px}
.forum-v3 .pssm-rank-chip{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 12px;border-radius:8px}
.forum-v3 .pssm-rank-icon,.forum-v3 .pssm-rank-icon svg{width:15px;height:15px}
.forum-v3 .pssm-icon-spin,.forum-v3 .pssm-icon-spin svg{animation:none!important;transform:none!important}
.forum-v3 .pssm-rank-rcon{box-shadow:0 0 0 1px rgba(255,88,104,.08) inset,0 0 18px rgba(170,32,51,.09)}
.forum-v3 .pssm-rank-rcon .pssm-rank-icon{filter:drop-shadow(0 0 6px rgba(255,82,96,.35))}
.forum-v3 .pssm-rank-list{gap:10px}
@media(max-width:760px){
  .forum-v3 .forum-category-heading{padding:14px 14px;font-size:16px}
  .forum-v3 .forum-internal-category{grid-template-columns:44px minmax(0,1fr);padding:16px 12px 16px 14px;gap:12px}
  .forum-v3 .forum-category-stat{grid-column:2/3;justify-self:start;margin-top:4px;height:34px;min-width:0}
  .forum-v3 .forum-category-info strong{font-size:15px}
  .forum-v3 .forum-category-info small{font-size:12px}
}
