/* Manrope via header <link> — no render-blocking @import */
:root, html[data-theme="dark"], html[data-ips-scheme="dark"], body {
  --eg-accent:#da3633;
  --eg-bg:#100e0f;
  --eg-panel:#171415;
  --eg-line:rgba(255,255,255,.09);
  --eg-muted:#a7a2a4;
  --eg-text:#eee;
  --i-background:#100e0f !important;
  --i-background_light:#171415 !important;
  --i-background_dark:#0c0a0b !important;
  --i-color_primary:#da3633 !important;
  --primary-color:#da3633 !important;
}

/* Metric-matched fallback reduces font-swap CLS (look stays Manrope when loaded) */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 103%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
html, body {
  color:#eee !important;
  font-family:Manrope, "Manrope Fallback", system-ui, sans-serif !important;
}
/* Site page backdrop moved to EG-SNOW-SITE-BG block (end of file). */

#ipsLayout_body, .ipsLayout_container, #ipsLayout_contentArea, .ipsApp, .ipsPage, main {
  background:transparent !important;
}

/* ===== Header / Topnav ===== */
.eg-ips-topnav {
  position:sticky; top:0; z-index:1000;
  background:#0b0a0b;
  border-bottom:1px solid rgba(255,255,255,.06);
  box-shadow:0 1px 0 rgba(218,54,51,.35);
}
.eg-ips-topnav__inner {
  max-width:1280px; margin:0 auto; padding:10px 20px;
  display:flex; align-items:center; gap:18px; flex-wrap:wrap;
}
.eg-ips-topnav__logo {
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none !important; color:#fff !important;
  font-weight:800; letter-spacing:.02em; text-transform:uppercase; font-size:14px;
}
.eg-ips-topnav__logo img { height:34px; width:34px; object-fit:contain; display:block; aspect-ratio:1/1; }
.eg-ips-topnav__counts {
  display:inline-flex; align-items:center; gap:10px;
  position:relative;
  font-size:12px; font-weight:800;
}
.eg-ips-topnav__counts .is-online { color:#4ade80; }
.eg-ips-topnav__counts .is-online i {
  display:inline-block; width:7px; height:7px; border-radius:50%; background:#4ade80; margin-right:6px;
}
/* Flute monitoring pill 1:1 — dark capsule, green dot + mint count, white servers */
.eg-monitoring{ position:relative; z-index:40; }
.eg-monitoring-pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:6px 12px; border-radius:999px; background:#1a1a1a; border:1px solid rgba(255,255,255,.08);
  color:#fff; font-size:12px; font-weight:800; cursor:pointer; line-height:1;
  font-family:inherit;
}
.eg-monitoring-pill__online{
  display:inline-flex; align-items:center; gap:6px; color:#4ade80;
}
.eg-monitoring-pill__online i{
  display:inline-block; width:7px; height:7px; border-radius:50%; background:#4ade80; margin:0;
  box-shadow:0 0 0 2px rgba(74,222,128,.18);
}
.eg-monitoring-pill__online strong{ color:#4ade80; font-weight:800; font-size:13px; }
.eg-monitoring-pill__servers{ color:#ffffff; font-weight:700; font-size:12px; }
.eg-monitoring-tip{
  position:absolute; top:calc(100% + 8px); left:0; min-width:320px; max-width:min(420px,92vw);
  background:#141214; border:1px solid rgba(255,255,255,.1); border-radius:8px;
  box-shadow:0 12px 40px rgba(0,0,0,.55); padding:10px; z-index:60;
}
.eg-monitoring-tip[hidden]{ display:none !important; }
.eg-monitoring-tip__head{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:4px 6px 10px; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:8px;
  font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:#a7a2a4; font-weight:800;
}
.eg-monitoring-tip__head strong{ color:#fff; font-size:13px; letter-spacing:0; text-transform:none; }
.eg-monitoring-tip__head b{ color:#4ade80; font-style:normal; }
.eg-monitoring-tip__head i{ font-style:normal; color:#fff; }
.eg-monitoring-tip__list{ display:grid; gap:8px; max-height:360px; overflow:auto; }
.eg-monitoring-tip__srv{
  position:relative; border:1px solid rgba(255,255,255,.08); border-radius:6px;
  background:rgba(255,255,255,.03); overflow:hidden;
}
.eg-monitoring-tip__srv-inner{
  display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px;
}
.eg-monitoring-tip__srv-info{ display:grid; gap:2px; min-width:0; }
.eg-monitoring-tip__srv-name{ color:#fff; font-weight:800; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.eg-monitoring-tip__srv-map{ color:#a7a2a4; font-size:11px; }
.eg-monitoring-tip__srv-right{ display:flex; align-items:center; gap:8px; flex:none; }
.eg-monitoring-tip__players{
  position:relative; display:inline-flex; align-items:center; justify-content:center;
  min-width:64px; height:22px; border-radius:999px; background:#1a1a1a; overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.eg-monitoring-tip__bar{
  position:absolute; inset:0 auto 0 0; width:var(--fill,0%); background:rgba(74,222,128,.22);
}
.eg-monitoring-tip__ptext{ position:relative; z-index:1; font-size:11px; font-weight:800; color:#fff; }
.eg-monitoring-tip__ptext b{ color:#4ade80; }
.eg-monitoring-tip__ptext span{ color:#fff; }
.eg-monitoring-tip__actions{ display:inline-flex; gap:4px; }
.eg-monitoring-tip__btn{
  width:28px; height:28px; display:grid; place-items:center; border-radius:4px;
  border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.04); color:#ddd; cursor:pointer;
  text-decoration:none !important;
}
.eg-monitoring-tip__btn--play{ background:rgba(218,54,51,.18); border-color:rgba(218,54,51,.45); color:#fff; }
.eg-monitoring-tip__btn:hover{ filter:brightness(1.1); color:#fff; }
.eg-ips-topnav__links { display:flex; gap:4px; flex-wrap:wrap; margin-left:8px; }
.eg-ips-topnav__links a {
  display:inline-flex; align-items:center; gap:7px;
  padding:8px 11px; border-radius:3px; color:#c9c4c5 !important;
  text-decoration:none !important; font-size:13px; font-weight:700;
}
.eg-ips-topnav__links a:hover, .eg-ips-topnav__links a.is-active {
  color:#fff !important; background:rgba(218,54,51,.16);
}
.eg-ips-topnav__links a.is-active { box-shadow:inset 0 -2px 0 var(--eg-accent); }
.eg-ips-topnav__links i { color:var(--eg-accent); width:14px; text-align:center; }

body.eg-home .ipsHeader.ipsResponsive_header--desktop,
body.eg-home header.ipsHeader,
body.eg-home .ipsNavBar,
body.eg-home .ipsNavBar_primary {
  display:none !important;
}


/* Hide IPS "FORUMS / Start new topic" page header bar — NEVER profile headers */
body.eg-home .ipsPageHeader--forum-table,
body.eg-home .ipsPageHeader--forums,
body.eg-home .ipsPageHeader:has([data-role="pageActionButtons"]):not(.ipsBox--profileHeader):not([data-role="profileHeader"]),
body.eg-home .ipsPageHeader:has(.ipsButton):not(.ipsBox--profileHeader):not([data-role="profileHeader"]),
.cForumBrowse > .ipsPageHeader,
#ipsLayout_mainArea > .ipsPageHeader--forum-table,
#ipsLayout_mainArea > .ipsPageHeader:not(.ipsBox--profileHeader):not([data-role="profileHeader"]),
.eg-forums-host > .ipsPageHeader:not(.ipsBox--profileHeader),
.eg-forums-host .ipsPageHeader--forum-table,
.ipsPageHeader--forum-table .ipsButton,
.ipsPageHeader--forum-table [data-role="pageActionButtons"] {
  display: none !important;
}

/* Hide IPS chrome: Home / All Activity bar + default footer links (not profile) */
.ipsBreadcrumb,
.ipsBreadcrumb__wrapper,
.ipsAppBar,
.ipsAppBar__inner,
.ipsData__main > .ipsBreadcrumb,
nav[aria-label="Breadcrumb"],
.cForumBrowse .ipsBreadcrumb {
  display:none !important;
}
body:not([data-pageController="profile"]):not([data-pageModule="members"]) .ipsPageHeader__nav,
body:not([data-pageController="profile"]):not([data-pageModule="members"]) .ipsPageHeader [data-role="pageActionButtons"] {
  display:none !important;
}

/* IPS footer host — always visible; EG community is the real footer */
.ipsFooter, .ipsFooter__footer, .ipsFooter__align, [data-ips-hook="footerWrapper"], #ipsLayout_footer {
  display:block !important;
  visibility:visible !important;
  background:transparent !important; border:0 !important; padding:0 !important; margin:0 !important;
  max-width:none !important; width:100% !important; min-height:0 !important;
  overflow:visible !important;
}
.ipsFooter__widgets { display:none !important; }
/* Hide stock IPS legal/copyright strip — custom .eg-community__bottom is the only footer row */
.ipsFooter .ipsFooterLinks,
.ipsFooter__footer .ipsFooterLinks,
.ipsFooter__align .ipsFooterLinks,
.ipsFooter .ipsCopyright,
.ipsFooter > .ipsCopyright,
.ipsFooter__footer > .ipsCopyright,
.ipsFooter__align > .ipsCopyright,
#ipsLayout_footer > .ipsCopyright,
.ipsFooter a[href*="invisioncommunity"]:not(.eg-powered a) { display:none !important; }
.ipsColorSchemeChanger,
[data-ips-hook="themeList"],
[data-ips-hook="themes"],
#elNavTheme,
#elNavTheme_menu { display:none !important; }
/* Portal blocks + sidebar + boardstats — forum home only (html.eg-home set early in header) */
html:not(.eg-home) body:not(.eg-home) #eg-portal-top,
html:not(.eg-home) body:not(.eg-home) .eg-home-hero,
html:not(.eg-home) body:not(.eg-home) .eg-ann,
html:not(.eg-home) body:not(.eg-home) .eg-partners-board,
html:not(.eg-home) body:not(.eg-home) .eg-server-board,
html:not(.eg-home) body:not(.eg-home) .eg-shoutbox,
html:not(.eg-home) body:not(.eg-home) .eg-elochat,
html:not(.eg-home) body:not(.eg-home) .eg-sidebar,
html:not(.eg-home) body:not(.eg-home) .eg-boardstats-host,
html:not(.eg-home) body:not(.eg-home) .eg-boardstats,
html:not(.eg-home) body:not(.eg-home) .eg-portal-grid,
html:not(.eg-home) body:not(.eg-home) .eg-home-band,
body.eg-page-shell #eg-portal-top,
body.eg-page-shell .eg-sidebar,
body.eg-page-shell .eg-boardstats-host,
body.eg-inner:not(.eg-home) #eg-portal-top,
body.eg-inner:not(.eg-home) .eg-sidebar,
body.eg-inner:not(.eg-home) .eg-boardstats-host,
body.eg-inner:not(.eg-home) .eg-boardstats,
body.eg-inner:not(.eg-home) .eg-portal-grid,
body.eg-inner:not(.eg-home) .eg-shoutbox,
body.eg-inner:not(.eg-home) .eg-elochat,
body.eg-inner:not(.eg-home) .eg-home-band {
  display:none !important;
}
html.eg-home #eg-portal-top,
html.eg-home .eg-sidebar,
html.eg-home .eg-boardstats-host,
body.eg-home #eg-portal-top,
body.eg-home .eg-sidebar,
body.eg-home .eg-boardstats-host {
  display:block !important;
}
body.eg-home .eg-portal-grid { display:grid !important; }

/* ===== Hero ===== */
.eg-home-hero {
  position:relative; height:340px; margin:16px auto 18px; max-width:1280px;
  overflow:hidden; border-radius:3px; background:#100e0f; color:#eee;
  border:1px solid rgba(218,54,51,.28);
}
.eg-home-hero__img {
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center right; z-index:0;
}
.eg-home-hero__fade {
  position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(90deg, rgba(16,14,15,.96) 0%, rgba(16,14,15,.82) 34%, rgba(16,14,15,.18) 66%, rgba(16,14,15,.42) 100%),
    linear-gradient(180deg, rgba(16,14,15,.28) 0%, rgba(16,14,15,0) 120px, rgba(16,14,15,0) 62%, #100e0f 100%);
}
.eg-home-hero__copy {
  position:relative; z-index:2; height:100%;
  display:flex; flex-direction:column; justify-content:center;
  padding:28px 36px; max-width:560px;
}
.eg-home-hero__copy h1 {
  margin:0 0 12px; font-size:clamp(28px, 3.4vw, 40px); line-height:1.1; font-weight:800; color:#fff;
}
.eg-home-hero__copy p {
  margin:0 0 22px; max-width:420px; color:#c9c4c5; font-size:15px; line-height:1.55;
  border-left:2px solid var(--eg-accent); padding-left:14px;
}
.eg-home-hero__cta { display:flex; flex-wrap:wrap; gap:10px; }
.eg-home-hero__play, .eg-home-hero__dc {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:42px; padding:0 16px; border-radius:3px;
  font-size:12px; font-weight:800; letter-spacing:.06em; text-transform:uppercase;
  text-decoration:none !important; color:#fff !important;
}
.eg-home-hero__play { background:var(--eg-accent); }
.eg-home-hero__play:hover { filter:brightness(1.08); color:#fff !important; }
.eg-home-hero__dc { background:#5865f2; }
.eg-home-hero__dc:hover { filter:brightness(1.08); color:#fff !important; }

/* ===== Server board / tiles ===== */
.eg-section { background:var(--eg-panel); border:1px solid var(--eg-line); margin:0 auto 18px; border-radius:3px; max-width:1280px; }
.eg-section-heading {
  margin:0; padding:15px 18px; background:rgba(255,255,255,.035);
  border-bottom:1px solid var(--eg-line); border-left:4px solid var(--eg-accent);
  font-size:14px; text-transform:uppercase; font-weight:800; letter-spacing:.03em; color:#fff;
}
.eg-section-heading i { margin-right:12px; color:var(--eg-accent); }
.eg-server-board { overflow:hidden; }
/* EloChat / shoutbox — NodeBB 1:1 under Nasze serwery */
.eg-shoutbox,.eg-elochat{margin:0 0 18px;overflow:hidden;width:100%}
.eg-shoutbox .eg-section-heading{display:flex;align-items:center;gap:10px}
.eg-shoutbox .eg-section-heading > span:first-child{display:inline-flex;align-items:center}
.eg-shoutbox__live{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#c45d5d}
.eg-shoutbox__live i{width:7px;height:7px;border-radius:50%;background:#da3633}
.eg-shoutbox__log{height:268px;overflow:auto;padding:4px 0;background:rgba(0,0,0,.18);scrollbar-width:thin;scrollbar-color:#4a2a2a transparent}
.eg-shoutbox__log::-webkit-scrollbar{width:8px}
.eg-shoutbox__log::-webkit-scrollbar-thumb{background:#4a2a2a;border-radius:8px}
.eg-shout{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:8px;padding:6px 14px;font-size:13px;line-height:1.45;border-bottom:1px solid rgba(255,255,255,.035);min-width:0}
.eg-shout:nth-child(odd){background:rgba(255,255,255,.015)}
.eg-shout time{flex:none;color:var(--eg-muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:7.6em;padding-top:2px}
@media (max-width:760px){
  .eg-shoutbox .eg-shout time,
  .eg-elochat .eg-shout time,
  .eg-shout time{display:none!important}
  .eg-shout{gap:6px;padding:5px 12px}
  .eg-shout .eg-nick,
  .eg-shout .eg-shout__nick{max-width:34vw}
}
.eg-shout__ava-link{flex:none;align-self:center;line-height:0;text-decoration:none}
.eg-shout__ava{width:18px;height:18px;border-radius:50%;object-fit:cover;flex:none;align-self:center;display:block}
.eg-shout .eg-nick,
.eg-shout .eg-shout__nick{
  flex:0 1 auto;max-width:42%;font-weight:800;text-decoration:none;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;cursor:pointer;padding-top:1px
}
.eg-shout .eg-nick:hover,
.eg-shout .eg-shout__nick:hover{text-decoration:underline}
.eg-shout__sep{color:var(--eg-muted);flex:none;padding-top:1px}
.eg-shout__text{
  flex:1 1 0;min-width:0;color:#e8e4e5;
  overflow-wrap:anywhere;word-break:break-word;white-space:normal;padding-top:1px
}
.eg-shout__link{color:#7db7ff;text-decoration:underline;word-break:break-all}
.eg-shout__link:hover{color:#b3d4ff}
.eg-shout__mention{color:#ffb4b1;font-weight:700}
.eg-shout__emo{
  display:inline-block;width:20px;height:20px;vertical-align:-4px;margin:0 1px;
  object-fit:contain
}
.eg-shout__media{
  display:inline-block;width:auto;height:auto;max-width:50px;max-height:50px;
  margin:0 2px;vertical-align:middle;border-radius:4px;border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.25);cursor:pointer;object-fit:contain
}
.eg-shout__media-link{display:inline;line-height:0;vertical-align:middle}
@media (max-width:760px){
  .eg-shout__media{max-width:36px;max-height:36px}
}
.eg-shout__del{display:none;margin-left:auto;flex:none;align-items:center;gap:4px;border:1px solid rgba(218,54,51,.45);border-radius:3px;background:rgba(218,54,51,.16);color:#ffb4b1;cursor:pointer;font-size:11px;font-weight:800;line-height:1;padding:3px 8px;align-self:center;text-transform:uppercase;letter-spacing:.04em}
.eg-shoutbox[data-can-mod="1"] .eg-shout__del{display:inline-flex}
.eg-shout__del:hover{background:#da3633;color:#fff;border-color:#da3633}
.eg-shoutbox__emo{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:4px;
  max-height:140px;overflow:auto;padding:10px 12px;border-top:1px solid var(--eg-line);
  background:rgba(0,0,0,.32);scrollbar-width:thin;scrollbar-color:#4a2a2a transparent
}
.eg-shoutbox__emo[hidden]{display:none!important}
.eg-shoutbox__emo-btn{
  display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:6px;
  background:transparent;cursor:pointer
}
.eg-shoutbox__emo-btn:hover{background:rgba(218,54,51,.18)}
.eg-shoutbox__emo-btn img{width:22px;height:22px;object-fit:contain;display:block}
.eg-shoutbox__form{display:flex;align-items:stretch;gap:0;border-top:1px solid var(--eg-line);background:rgba(0,0,0,.22);position:relative}
.eg-shoutbox__form[hidden]{display:none!important}
.eg-shoutbox__tools{display:flex;flex:none;align-items:center;gap:0;padding:0 2px 0 6px;border-right:1px solid rgba(255,255,255,.06)}
.eg-shoutbox__tool{
  display:grid;place-items:center;width:36px;height:100%;min-height:42px;border:0;background:transparent;
  color:#c9c2c3;cursor:pointer;font-size:16px;padding:0
}
.eg-shoutbox__tool:hover,.eg-shoutbox__tool[aria-expanded="true"]{color:#fff;background:rgba(218,54,51,.16)}
.eg-shoutbox__form input[type="text"],
.eg-shoutbox__form input[name="shout"]{flex:1;min-width:0;border:0;background:transparent;color:#eee;padding:12px 14px;font-size:13px;outline:none}
.eg-shoutbox__form input::placeholder{color:#6f6869}
.eg-shoutbox__form > button[type="submit"]{flex:none;border:0;background:#da3633;color:#fff;font-weight:800;letter-spacing:.04em;text-transform:uppercase;padding:0 18px;font-size:12px;cursor:pointer}
.eg-shoutbox__form > button[type="submit"]:hover{filter:brightness(1.08)}
.eg-shoutbox__form > button[type="submit"]:disabled,
.eg-shoutbox__form button:disabled{opacity:.55;cursor:wait}
.eg-shoutbox__guest{margin:0;padding:12px 14px;border-top:1px solid var(--eg-line);color:var(--eg-muted);font-size:12px;background:rgba(0,0,0,.22);min-height:42px;box-sizing:border-box}
.eg-shoutbox__guest[hidden]{display:none!important}
.eg-shoutbox__form{min-height:42px;box-sizing:border-box}
.eg-server-tiles {
  display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:10px; padding:14px;
  /* Reserve final footprint so JS fill does not shift layout (CLS) */
  min-height: 248px;
  box-sizing: border-box;
}
.eg-server-tile {
  display:flex; flex-direction:column; gap:9px; min-width:0;
  padding:12px 12px 11px; border-radius:10px;
  border:1px solid rgba(255,255,255,.08); background:#161213; position:relative;
}
.eg-server-tile:before {
  content:""; position:absolute; left:12px; right:12px; top:0; height:3px;
  border-radius:0 0 3px 3px; background:#eab308;
}
.eg-server-tile.is-load-yellow:before, .eg-server-tile.is-load-yellow .eg-server-tile__fill span { background:#eab308; }
.eg-server-tile.is-load-green:before, .eg-server-tile.is-load-green .eg-server-tile__fill span { background:#22c55e; }
.eg-server-tile.is-load-orange:before, .eg-server-tile.is-load-orange .eg-server-tile__fill span { background:#f97316; }
.eg-server-tile.is-load-red:before, .eg-server-tile.is-load-red .eg-server-tile__fill span { background:#da3633; }
.eg-server-tile__head { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.eg-server-tile__live {
  display:inline-flex; align-items:center; gap:6px;
  font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:#8f8a8b;
}
.eg-server-tile__live i { width:7px; height:7px; border-radius:50%; background:#5c5556; }
.eg-server-tile.is-online .eg-server-tile__live { color:#86efac; }
.eg-server-tile.is-online .eg-server-tile__live i { background:#22c55e; }
.eg-server-tile.is-offline .eg-server-tile__live { color:#fca5a5; }
.eg-server-tile.is-offline .eg-server-tile__live i { background:#ef4444; }
.eg-server-tile__slots { font-size:12px; font-weight:800; color:#eee; }
.eg-server-tile__fill { height:3px; border-radius:99px; background:rgba(255,255,255,.06); overflow:hidden; }
.eg-server-tile__fill span { display:block; height:100%; background:#eab308; border-radius:99px; }
.eg-server-tile__identity { display:flex; gap:10px; align-items:center; min-width:0; }
.eg-server-tile__mark {
  flex:none; width:34px; height:34px; display:grid; place-items:center;
  border-radius:9px; background:rgba(218,54,51,.12); border:1px solid rgba(218,54,51,.28); overflow:hidden;
}
.eg-server-tile__mark img { width:22px; height:22px; object-fit:contain; display:block; }
.eg-server-tile__identity h3 {
  margin:0; font-size:14px; font-weight:800; line-height:1.15; letter-spacing:.01em; text-transform:uppercase; color:#fff;
}
.eg-server-tile__identity small {
  display:block; margin-top:3px; color:var(--eg-muted); font-size:10px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase;
}
.eg-server-tile__ip { display:flex; align-items:center; gap:8px; min-width:0; }
.eg-server-tile__ip code {
  flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:#d7d3d4; font-size:12px; font-weight:700;
}
.eg-server-tile__copy {
  flex:none; border:1px solid var(--eg-line); background:rgba(255,255,255,.04); color:#eee;
  border-radius:7px; padding:5px 8px; font-size:10px; font-weight:800; letter-spacing:.06em;
  text-transform:uppercase; cursor:pointer;
}
.eg-server-tile__copy:hover { border-color:var(--eg-accent); color:#fff; }
.eg-server-tile__facts { margin:0; display:grid; gap:4px; }
.eg-server-tile__facts div { display:flex; justify-content:space-between; gap:8px; min-width:0; }
.eg-server-tile__facts dt {
  color:var(--eg-muted); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
}
.eg-server-tile__facts dd {
  margin:0; color:#eee; font-size:12px; font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.eg-server-tile__tools { display:flex; gap:6px; }
.eg-server-tile__tools a, .eg-server-tile__tools span {
  width:32px; height:28px; display:grid; place-items:center; border-radius:7px;
  background:rgba(255,255,255,.04); color:#9aa3ad; font-size:12px; text-decoration:none;
  border:1px solid var(--eg-line);
}
.eg-server-tile__tools a:hover { color:#fff; border-color:rgba(218,54,51,.45); background:rgba(218,54,51,.12); }
.eg-server-tile__tools .is-soon { opacity:.38; }
.eg-server-tile__connect {
  display:block; margin-top:auto; padding:9px 10px; border-radius:8px;
  background:var(--eg-accent); color:#fff !important; text-align:center;
  font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; text-decoration:none;
}
.eg-server-tile__connect:hover { filter:brightness(1.08); color:#fff !important; }

@media (max-width:1200px) {
  .eg-server-tiles { grid-template-columns:repeat(3, minmax(0,1fr)); min-height: 500px; }
}
@media (max-width:760px) {
  .eg-server-tiles { grid-template-columns:1fr; min-height: 1180px; }
  .eg-home-hero { height:280px; margin:10px 0 14px; }
  .eg-home-hero__copy { padding:20px; }
}

/* ===== Footer community — full width, always visible ===== */
.eg-community {
  display:block !important;
  visibility:visible !important;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  width:100% !important;
  max-width:none !important;
  margin:40px 0 0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  margin-bottom:0 !important;
  padding:0 !important;
  padding-bottom:0 !important;
  box-sizing:border-box !important;
  background:#131112 !important;
  border-top:3px solid var(--eg-accent) !important;
  color:#c8c4c5;
  order:999;
  overflow:hidden !important;
  transform:none !important;
}
/* Flush footer host — no empty strip under .eg-community */
#ipsLayout_footer,
footer.ipsFooter,
.ipsFooter[data-ips-hook="footerWrapper"],
.ipsFooter__footer,
.ipsFooter__align {
  width:100% !important;
  max-width:none !important;
  position:relative !important;
  left:auto !important;
  right:auto !important;
  transform:none !important;
  margin:0 !important;
  margin-bottom:0 !important;
  padding:0 !important;
  padding-bottom:0 !important;
  min-height:0 !important;
  overflow:visible !important;
  box-sizing:border-box !important;
  background:transparent !important;
  border:0 !important;
}
.ipsFooter__footer > *:not(.eg-community),
.ipsFooter__align > *:not(.eg-community),
.ipsFooter > *:not(.eg-community):not(.ipsFooter__footer):not(.ipsFooter__align):not(script):not(style) {
  display:none !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}
html, body {
  margin-bottom:0 !important;
  padding-bottom:0 !important;
  overflow-x:hidden;
  height:auto !important;
  min-height:0 !important;
}
html { background:#100e0f !important; }
body::after { content:none !important; display:none !important; height:0 !important; }
/* Kill empty strip under footer (IPS wrappers / page-shell min-heights) */
.eg-page-shell,
body.eg-page-shell,
body.eg-page-shell .eg-page-main {
  min-height:0 !important;
}
body.eg-page-shell .eg-page-main {
  margin-bottom:24px !important;
}
.ipsApp,
.ipsPage,
#ipsLayout_body,
.ipsContentWrap,
.ipsLayout,
[data-ips-hook="layout"] {
  padding-bottom:0 !important;
  margin-bottom:0 !important;
  min-height:0 !important;
}
.eg-community,
.eg-community__bottom {
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}
.eg-community__bottom {
  padding-bottom:18px !important;
}
.eg-community__inner {
  display:grid; grid-template-columns:minmax(240px,1.2fr) minmax(260px,1fr) minmax(250px,.9fr);
  gap:36px 48px; align-items:start; padding:34px 40px 40px; max-width:1280px; margin:0 auto;
  width:100%; box-sizing:border-box;
}
.eg-community__brand-row { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.eg-community__brand-row img { height:42px; width:auto; }
.eg-community__brand-row strong {
  font-size:18px; letter-spacing:.04em; text-transform:uppercase; color:#eee; font-weight:800;
}
.eg-community__brand p { margin:0; font-size:13px; line-height:1.65; color:#9aa; }
.eg-community__brand p + p { margin-top:10px; }
.eg-community__socials { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.eg-community__socials a {
  width:36px; height:36px; display:grid; place-items:center; border-radius:50%;
  background:#1c191a; border:1px solid #2a2627; color:#ddd; text-decoration:none;
}
.eg-community__socials a:hover { background:#da3633; border-color:#da3633; color:#fff; }
.eg-community__socials svg { width:15px; height:15px; fill:currentColor; }
.eg-community__menu h3, .eg-community__join h3 {
  margin:0 0 12px; font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:#eee;
}
.eg-community__menu h3:after, .eg-community__join h3:after {
  content:""; display:block; width:36px; height:3px; margin-top:8px; background:#da3633; border-radius:2px;
}
.eg-community__links {
  display:grid; grid-template-columns:1fr 1fr; gap:8px 22px; margin:0; padding:0; list-style:none;
}
.eg-community__links a {
  display:flex; align-items:center; gap:8px; color:#d7d3d4 !important; font-size:13px; font-weight:700; text-decoration:none !important;
}
.eg-community__links a:hover { color:#fff !important; }
.eg-community__links i { color:#da3633; width:14px; text-align:center; }
.eg-community__join {
  padding:18px 20px 20px; background:#181516; border:1px solid #2a2627;
}
.eg-community__join p { margin:0 0 14px; font-size:13px; line-height:1.6; color:#9a9596; }
.eg-community__join ul { margin:0 0 18px; padding:0; list-style:none; display:grid; gap:8px; font-size:13px; font-weight:600; color:#ddd; }
.eg-community__join li { display:flex; gap:8px; align-items:center; }
.eg-community__join li i { color:#da3633; }
.eg-community__cta {
  display:inline-flex; align-items:center; justify-content:center; width:100%; min-height:44px;
  padding:10px 14px; background:#da3633; color:#fff !important; font-size:12px; font-weight:800;
  letter-spacing:.05em; text-transform:uppercase; text-decoration:none !important; border-radius:2px;
}
.eg-community__cta:hover { background:#c42f2c; color:#fff !important; }
.eg-community__bottom {
  max-width:1280px; margin:0 auto; padding:16px 40px 12px;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px 24px;
  border-top:1px solid rgba(255,255,255,.08); color:#6f6a6b; font-size:13px;
  width:100%; box-sizing:border-box;
}
.eg-community__bottom a { color:#8b8687 !important; text-decoration:none !important; font-weight:600; margin-right:14px; }
.eg-community__legal{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0}
.eg-lang{display:inline-flex;align-items:center;margin-left:4px}
.eg-lang__label{display:inline-flex;align-items:center;gap:8px;color:#8b8687;font-weight:600}
.eg-lang__select{
  background:#1a1718;color:#ddd;border:1px solid rgba(255,255,255,.12);border-radius:4px;
  padding:4px 8px;font:inherit;font-size:12px;min-height:28px;cursor:pointer
}
/* Hide IPS legal / language / powered-by strip — custom .eg-community__bottom is the single row */
.eg-community__ips-extras,
.eg-community__ips-extras *,
.ipsFooter .ipsFooterLinks,
.ipsFooter__links,
[data-role="footerExtra"]:not(.eg-community__legal),
.ipsFooter select[name="language"],
.ipsFooter [data-role="languageSelector"],
.ipsFooter a[href*="invisioncommunity"]:not(.eg-powered a),
.ipsApp .ipsFooter .ipsCopyright {
  display:none !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
  visibility:hidden !important;
}
/* Keep custom Powered-by visible in the single .eg-community__bottom row */
.eg-community .eg-powered,
.eg-community .eg-powered a {
  display:inline !important;
  visibility:visible !important;
  height:auto !important;
  overflow:visible !important;
  border:0 !important;
  padding:0 !important;
}

@media (max-width:980px) {
  .eg-community__inner { grid-template-columns:1fr; gap:28px; padding:28px 20px 32px; }
}
@media (max-width:560px) {
  .eg-community__links { grid-template-columns:1fr; }
}


/* Full-bleed forum categories (structural — no JS body class) */
.ipsBox--forumCategory,
.ipsBox--forum-categories,
.ipsBox--forumsTable,
.cForumBrowse,
.ipsBox--forums {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
#ipsLayout_mainArea:has(.ipsBox--forumCategory),
#ipsLayout_mainArea:has(.cForumBrowse),
#ipsLayout_mainArea:has(.ipsBox--forumsTable),
.ipsLayout__main:has(.ipsBox--forumCategory) {
  max-width: 1280px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Align IPS content / forums with server tiles & boardstats (same 1280 gutter) */
#ipsLayout_body,
#ipsLayout_contentWrapper,
#ipsLayout_mainArea,
#ipsLayout_contentArea,
.ipsLayout_container,
.ipsBox--forums,
.cForumBrowse,
.ipsLayout__main,
main.ipsLayout__main,
body #ipsLayout_mainArea,
body.eg-home #ipsLayout_mainArea,
body.eg-home .ipsLayout__main,
body .ipsLayout__main {
  max-width:1280px !important;
  width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
  box-sizing:border-box !important;
}
/* Kill nested containers that shrink forums vs server board */
body.eg-home #ipsLayout_mainArea > .ipsBox,
body.eg-home .ipsLayout__main > .ipsBox,
body #ipsLayout_mainArea > .ipsBox,
body.eg-home .cForumBrowse,
body .cForumBrowse,
body.eg-home .ipsBox--forums,
body .ipsBox--forums {
  max-width:none !important;
  width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}
.eg-portal-top {
  max-width:1280px; margin:0 auto; padding:0; box-sizing:border-box;
}
body.eg-home .ipsBox--forumCategory,
body.eg-home .ipsBox--forum-categories,
body.eg-home .ipsBox--forumsTable,
body .ipsBox--forumCategory,
body .ipsBox--forum-categories,
body .ipsBox--forumsTable {
  margin-left:0 !important; margin-right:0 !important; max-width:none !important; width:100% !important;
}
/* Inner pages: keep nav, hide home-only portal blocks (html.eg-home = early flag) */
body.eg-inner #eg-portal-top,
html:not(.eg-home) body:not(.eg-home) #eg-portal-top {
  display:none !important;
}
body.eg-inner .eg-ips-topnav,
html:not(.eg-home) body:not(.eg-home) .eg-ips-topnav,
html.eg-home .eg-ips-topnav,
body.eg-home .eg-ips-topnav {
  display:block !important;
}
/* Global: prefer EG topnav over default IPS chrome */
.eg-ips-topnav ~ .ipsHeader,
body:has(.eg-ips-topnav) .ipsHeader.ipsResponsive_header--desktop,
body:has(.eg-ips-topnav) header.ipsHeader,
body:has(.eg-ips-topnav) .ipsNavBar,
body:has(.eg-ips-topnav) .ipsNavBar_primary,
body:has(.eg-ips-topnav) .ipsMobileNavIcons,
body:has(.eg-ips-topnav) .ipsMobileNavIcons__button {
  display:none !important;
}


/* Shared home band: servers / forums+sidebar / stats share exact same edges */
.eg-home-band {
  width: min(1520px, calc(100vw - 16px)) !important;
  max-width: min(1520px, calc(100vw - 16px)) !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
}
.eg-server-board,
.eg-partners-board,
#eg-portal-top .eg-section {
  width: min(1520px, calc(100vw - 16px)) !important;
  max-width: min(1520px, calc(100vw - 16px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
body.eg-home #ipsLayout_body,
body.eg-home #ipsLayout_contentWrapper,
body.eg-home #ipsLayout_contentArea,
body.eg-home .ipsLayout_container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
/* Inner forum/topic pages: never show EG sidebar / boardstats */
body.eg-inner .eg-sidebar,
body.eg-inner .eg-boardstats-host,
body.eg-inner .eg-portal-grid,
body.eg-inner .eg-boardstats,
body.eg-inner [data-eg-boardstats],
body.eg-inner [data-eg-sidebar],
body.eg-inner .eg-home-band {
  display: none !important;
}
body.eg-inner #eg-portal-top {
  display: none !important;
}
.eg-home-band > .eg-portal-top,
.eg-home-band > .eg-portal-grid,
.eg-home-band > .eg-boardstats-host,
.eg-home-band .eg-section,
.eg-home-band .eg-home-hero,
.eg-home-band .eg-server-board,
.eg-home-band .eg-partners-board,
.eg-home-band .eg-ann,
.eg-home-band .eg-boardstats {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
.eg-portal-top { padding: 0 !important; }

/* Forums + EG sidebar: together fill the band (= servers width) */
.eg-portal-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px) !important;
  gap: 20px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.eg-portal-grid .eg-forums-host,
.eg-portal-grid .eg-sidebar,
.eg-portal-grid .ipsBox,
.eg-portal-grid .ipsBox--forumCategory,
.eg-portal-grid .ipsBox--forum-categories,
.eg-portal-grid .ipsBox--forumsTable {
  width: 100% !important;
  max-width: none !important;
}
.eg-forums-host {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.eg-sidebar {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  gap: 14px !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: none !important;
}
.eg-boardstats-host { margin: 0 0 18px !important; padding: 0 !important; }
.eg-panel{
  background:var(--eg-panel); border:1px solid var(--eg-line); border-radius:3px; overflow:hidden;
}
.eg-panel .eg-section-heading{margin:0}
.eg-panel-content{padding:12px 14px;color:var(--eg-muted);font-size:13px;line-height:1.6}
.eg-quicklinks{list-style:none;margin:0;padding:0}
.eg-quicklinks a{
  display:flex;gap:12px;align-items:center;padding:13px 16px;
  border-bottom:1px solid var(--eg-line);color:#eee!important;text-decoration:none!important;
  font-size:12px;font-weight:800;
}
.eg-quicklinks li:last-child a{border-bottom:0}
.eg-quicklinks i{color:var(--eg-accent);width:16px;text-align:center}
.eg-contact-label{
  margin:12px 14px 6px;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  display:flex;align-items:center;gap:8px;
}
.eg-contact-grid{display:grid;gap:10px;padding:4px 14px 14px}
.eg-contact-card{
  display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;align-items:center;
  padding:0;border:0;border-radius:0;background:transparent;
}
.eg-contact-card__avatar{width:36px;height:36px;border-radius:4px;object-fit:cover;display:block;background:transparent}
.eg-contact-card__avatar--empty{display:grid;place-items:center;background:transparent;color:#da3633;width:36px;height:36px;border-radius:4px;font-size:14px}
.eg-contact-card__body{min-width:0}
.eg-contact-card__links{display:flex;gap:6px;margin-top:4px}
.eg-contact-ico,.eg-auth-ico{
  width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--eg-line);border-radius:3px;color:#c9c4c5!important;background:rgba(255,255,255,.03);text-decoration:none!important
}
.eg-contact-ico:hover,.eg-auth-ico:hover{border-color:var(--eg-accent);color:#fff!important}
.eg-nick{font-weight:800;text-decoration:none!important}
.eg-banly__form{display:flex;gap:8px;padding:12px}
.eg-banly__input{
  flex:1;min-width:0;height:36px;padding:0 10px;border:1px solid var(--eg-line);border-radius:6px;
  background:rgba(255,255,255,.04);color:#eee;font:inherit
}
.eg-banly__btn{flex:none;height:36px;padding:0 12px;border:0;border-radius:6px;background:var(--eg-accent);color:#fff;font-weight:800;cursor:pointer}
.eg-top-users{display:grid;gap:8px;padding:6px 14px 14px}
.eg-top-user{
  display:grid !important;
  grid-template-columns:32px minmax(0,1fr) auto !important;
  gap:10px !important;
  align-items:center !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  text-decoration:none !important;
  color:#eee !important;
  min-width:0;
}
.eg-top-user img,.eg-top-user__fallback{
  width:32px;height:32px;border-radius:4px;object-fit:cover;background:transparent;
  display:grid;place-items:center;flex:none
}
.eg-top-user__name{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  display:flex;align-items:center;gap:6px
}
.eg-top-user__name .eg-nick{display:inline-flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eg-top-user__meta{
  color:var(--eg-muted);font-size:11px;font-weight:700;white-space:nowrap;text-align:right;justify-self:end
}
.eg-top-user small{display:none !important}
.eg-recent{list-style:none;margin:0;padding:8px 12px 14px;position:relative;z-index:2;touch-action:manipulation}
.eg-recent li,
.eg-recent__row{padding:0;border-bottom:1px solid var(--eg-line);position:relative;z-index:2;touch-action:manipulation}
.eg-recent li:last-child,
.eg-recent__row:last-child{border-bottom:0}
.eg-recent a.eg-recent__link,
.eg-recent li > a:not(.eg-nick){
  color:#eee!important;text-decoration:none!important;font-weight:700;font-size:13px;line-height:1.35;
  pointer-events:auto!important;position:relative;z-index:3;
  display:block!important;width:100%;max-width:100%;box-sizing:border-box;
  padding:12px 2px 4px;min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:rgba(218,54,51,.18)
}
.eg-recent a.eg-recent__link:hover,
.eg-recent li > a:not(.eg-nick):hover{color:#fff!important}
.eg-recent small{display:block;margin:0;padding:0 2px 10px;pointer-events:auto;position:relative;z-index:4}
.eg-recent .eg-nick{font-weight:800;text-decoration:none!important;pointer-events:auto!important;display:inline-flex;align-items:center;min-height:28px}
.eg-recent .eg-nick i{margin-right:5px}
.eg-sidebar,.eg-sidebar a,.eg-panel{pointer-events:auto!important}
/* Moderation template cards (NodeBB [eg-mod:…] → IPS HTML) */
.elo-mod{box-sizing:border-box;width:100%;max-width:100%;margin:8px 0;padding:16px 20px;display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:"logo brand" "logo badge" "logo text" "logo footer";column-gap:18px;row-gap:4px;align-items:center;text-align:left;color:#e8eaf0;line-height:1.5;background:linear-gradient(90deg,#1a1d25 0%,#12141a 100%);border:1px solid #2a2e39;border-radius:12px;box-shadow:0 10px 28px rgba(0,0,0,.4)}
.elo-mod--red{border-left:4px solid #e5202e}
.elo-mod--green{border-left:4px solid #22c55e}
.elo-mod__logo{grid-area:logo;display:block;width:auto;max-width:96px;height:44px;margin:0;object-fit:contain;justify-self:center}
.elo-mod__brand{grid-area:brand;margin:0;font-size:14px;font-weight:800;letter-spacing:1.4px;color:#e5202e}
.elo-mod__badge{grid-area:badge;display:inline-block;justify-self:start;margin:0;padding:4px 12px;font-size:12px;font-weight:700;letter-spacing:.4px;color:#e8eaf0;border-radius:999px}
.elo-mod--red .elo-mod__badge{background:rgba(229,32,46,.14);border:1px solid rgba(229,32,46,.55)}
.elo-mod--green .elo-mod__badge{background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.55)}
.elo-mod__text{grid-area:text;margin:0;font-size:13px;color:#9097a6}
.elo-mod__footer{grid-area:footer;margin:0;padding:0;font-size:11px;color:#9097a6;border:0}
@media(max-width:760px){
  .elo-mod{grid-template-columns:56px minmax(0,1fr);padding:10px 12px;column-gap:10px}
  .elo-mod__logo{max-width:56px;height:28px}
  .elo-mod__brand{font-size:11px}
  .elo-mod__badge{font-size:11px;padding:3px 9px}
  .elo-mod__text{font-size:12px}
}
.eg-section-heading--split{display:flex;align-items:center;justify-content:space-between;gap:10px}
.eg-support-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  min-height:28px;
  line-height:1 !important;
  padding:6px 12px !important;
  border-radius:3px;
  background:#2ea043;
  color:#fff !important;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  text-decoration:none !important;
  white-space:nowrap;
}
.eg-section-heading--split > span{
  display:inline-flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto;
}
.eg-section-heading--split .eg-support-btn{flex:none;margin-left:8px}

/* Board stats under forum — 3 stacked IPS-style blocks, EG colors */
.eg-boardstats-host{max-width:1280px;margin:0 auto 24px;padding:0;pointer-events:auto;position:relative;z-index:2}
.eg-boardstats--stack{display:flex;flex-direction:column;gap:12px;margin:0;padding:0;background:transparent;border:0}
.eg-bs-block{
  background:var(--eg-panel);border:1px solid var(--eg-line);border-radius:4px;overflow:hidden;
  pointer-events:auto;position:relative;z-index:2
}
.eg-bs-head{
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px;
  padding:12px 16px;background:rgba(255,255,255,.035);border-bottom:1px solid var(--eg-line);
  border-left:4px solid var(--eg-accent)
}
.eg-bs-head__ico{
  flex:none;width:28px;height:28px;display:inline-grid;place-items:center;
  background:var(--eg-accent);border-radius:3px;color:#fff;font-size:13px
}
.eg-bs-head__ico i{margin:0;color:#fff !important}
.eg-bs-head__title{
  margin:0;font-size:14px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
  font-style:normal;color:#fff;line-height:1.2
}
/* Boardstats: no italics anywhere (headers, labels, pills, newest, groups) */
.eg-boardstats,
.eg-boardstats *,
.eg-bs-block,
.eg-bs-block *{
  font-style:normal !important
}
.eg-bs-head__meta{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.eg-bs-head__right{margin-left:auto;flex:none}
.eg-bs-chip{
  display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;
  background:rgba(0,0,0,.28);border:1px solid var(--eg-line);color:var(--eg-muted);
  font-size:11px;font-weight:700;white-space:nowrap
}
.eg-bs-chip b{color:#fff;font-weight:800}
.eg-bs-chip i{color:var(--eg-accent);font-size:10px}
.eg-bs-chip--on i{color:#3fb950}
.eg-bs-chip--rec i{color:#d4a017}
.eg-bs-chip em{font-style:normal;color:var(--eg-muted);font-weight:600;margin-left:2px}
.eg-bs-all{
  color:var(--eg-muted)!important;font-size:11px;font-weight:700;text-transform:uppercase;
  letter-spacing:.03em;text-decoration:none!important;white-space:nowrap
}
.eg-bs-all:hover{color:#fff!important}
.eg-bs-all i{margin-left:4px}
.eg-bs-body{padding:14px 18px 16px;position:relative;z-index:2;pointer-events:auto}
.eg-bs-empty{margin:0;color:var(--eg-muted);font-size:13px}
.eg-bs-stats{display:flex;align-items:center;justify-content:space-between;gap:18px 24px;flex-wrap:wrap}
.eg-bs-stats__nums{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 18px;flex:1 1 280px;min-width:0
}
.eg-bs-stat{text-align:center;min-width:0}
.eg-bs-stat__num{
  display:block;font-size:clamp(22px,2.4vw,30px);font-weight:800;color:#fff;line-height:1.15;
  font-variant-numeric:tabular-nums;letter-spacing:.01em
}
.eg-bs-stat__label{
  display:block;margin-top:4px;font-size:12px;font-weight:600;color:var(--eg-muted)
}
.eg-bs-newest{
  flex:0 0 auto;min-width:220px;max-width:320px;padding:12px 14px;
  border:1px solid var(--eg-line);border-radius:4px;background:rgba(255,255,255,.03)
}
.eg-bs-newest__label{
  display:block;margin-bottom:8px;font-size:10px;font-weight:800;letter-spacing:.06em;
  text-transform:uppercase;color:var(--eg-muted)
}
.eg-bs-newest__row{display:flex;align-items:center;gap:12px;min-width:0}
.eg-bs-newest__avatar{
  flex:none;width:40px;height:40px;border-radius:4px;overflow:hidden;
  background:#2a2324;display:grid;place-items:center;text-decoration:none!important
}
.eg-bs-newest__avatar img{width:40px;height:40px;object-fit:cover;display:block}
.eg-bs-newest__letter{font-size:18px;font-weight:800;color:#fff}
.eg-bs-newest__info{min-width:0;display:flex;flex-direction:column;gap:2px}
.eg-bs-newest__info .eg-nick{display:inline-flex;align-items:center;gap:6px;font-weight:800;text-decoration:none!important}
.eg-bs-newest__joined{color:var(--eg-muted);font-size:11px;font-weight:600}
.eg-bs-pills{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
/* Shared boardstats pill: online / was-online / groups legend */
.eg-bs-pill,
.eg-bs-pill--badge{
  display:inline-flex!important;align-items:center;gap:7px;min-height:32px;
  padding:6px 12px 6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--eg-line);
  border-left:3px solid var(--c,var(--eg-accent));
  box-sizing:border-box;
  text-decoration:none!important;font-weight:800;font-size:13px;line-height:1.2;
  pointer-events:auto!important;cursor:pointer!important;position:relative!important;z-index:30!important;
  max-width:100%;touch-action:manipulation
}
.eg-bs-pill:hover,
a.eg-bs-pill:hover{filter:brightness(1.1);border-color:rgba(255,255,255,.18)}
.eg-bs-pill__ico{display:inline-flex;align-items:center;justify-content:center;font-size:12px;opacity:.95;color:inherit}
.eg-bs-pill__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.eg-bs-pill__dot{
  flex:none;width:7px;height:7px;border-radius:50%;background:#3fb950;
  box-shadow:0 0 0 2px rgba(63,185,80,.2);margin-left:2px
}
.eg-bs-pill--legend{
  cursor:default!important;
  pointer-events:none!important;
  font-size:12px
}
.eg-boardstats a.eg-nick,
.eg-boardstats a[data-eg-profile-link],
.eg-boardstats .eg-nick{
  pointer-events:auto !important;
  cursor:pointer !important;
  position:relative !important;
  z-index:30 !important;
  text-decoration:none !important;
  font-weight:800;
}
.eg-boardstats a.eg-nick:hover{filter:brightness(1.12);text-decoration:underline !important}
.eg-legend{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
@media(max-width:900px){
  .eg-bs-stats{flex-direction:column;align-items:stretch}
  .eg-bs-newest{max-width:none;width:100%}
  .eg-bs-stats__nums{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eg-bs-head__right{width:100%;margin-left:0}
}
@media(max-width:520px){
  .eg-bs-stats__nums{grid-template-columns:1fr 1fr;gap:14px 10px}
  .eg-bs-stat__num{font-size:22px}
  .eg-bs-body{padding:12px 12px 14px}
  .eg-bs-head{padding:10px 12px}
  .eg-bs-pill,.eg-bs-pill--badge{min-height:36px;padding:7px 12px 7px 10px}
}
.eg-powered{margin-left:8px;color:#6f6a6b}
.eg-powered a{color:#8b8687!important;text-decoration:none!important}
.eg-auth-icos{display:flex;gap:6px;margin-top:6px;align-items:center}
.eg-auth-icos--profile{margin:8px 0}
.eg-auth-icos--author{
  display:flex!important;width:100%;justify-content:center;align-items:center;text-align:center;box-sizing:border-box
}

/* ===== Auth buttons + forms ===== */
.eg-ips-topnav__auth{margin-left:auto;display:inline-flex;align-items:center;gap:8px}
.eg-auth-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;padding:0 14px;
  border-radius:3px;background:var(--eg-accent);color:#fff!important;font-size:12px;font-weight:800;
  letter-spacing:.04em;text-transform:uppercase;text-decoration:none!important;border:1px solid transparent
}
.eg-auth-btn i{font-size:13px;line-height:1}
.eg-auth-btn--ghost{background:transparent;border-color:rgba(255,255,255,.14);color:#ddd!important}
.eg-auth-btn:hover{filter:brightness(1.08);color:#fff!important}
.eg-ips-topnav__burger{
  display:none;width:40px;height:40px;place-items:center;border:1px solid rgba(255,255,255,.12);
  background:#1a1718;color:#eee;border-radius:3px;cursor:pointer;
  position:relative;z-index:10051
}
.eg-nav-drawer[hidden]{display:none!important}
.eg-nav-drawer{position:fixed;inset:0;z-index:10050;pointer-events:auto}
.eg-nav-drawer__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.eg-nav-drawer__panel{
  position:absolute;top:0;left:0;bottom:0;width:min(320px,88vw);background:#121012;
  border-right:1px solid rgba(255,255,255,.08);display:flex;flex-direction:column;padding:12px
}
.eg-nav-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:8px 6px 14px;color:#fff}
.eg-nav-drawer__head button{background:transparent;border:0;color:#eee;font-size:18px;cursor:pointer}
.eg-nav-drawer__links{display:grid;gap:4px;overflow:auto}
.eg-nav-drawer__links a{
  display:flex;align-items:center;gap:10px;padding:12px 12px;border-radius:3px;color:#ddd!important;
  text-decoration:none!important;font-weight:700;font-size:14px
}
.eg-nav-drawer__links a:hover,.eg-nav-drawer__links a.is-active{background:rgba(218,54,51,.16);color:#fff!important}
.eg-nav-drawer__links a i{color:var(--eg-accent);width:16px;text-align:center}

body[data-pageapp="core"][data-pagelocation="front"] .ipsBox,
#elUserSubmit .ipsBox,
.ipsForm.ipsForm--vertical,
.ipsLogin, .ipsRegister {
  background:var(--eg-panel)!important;border:1px solid var(--eg-line)!important;border-radius:3px!important;color:#eee!important
}
.ipsFieldRow_label, .ipsFieldRow__label, .ipsType_sectionTitle { color:#ddd!important }
.ipsField_primary input, .ipsFieldRow input[type="text"], .ipsFieldRow input[type="password"],
.ipsFieldRow input[type="email"], .ipsInput, input.ipsField_primary {
  background:#100e0f!important;border:1px solid var(--eg-line)!important;color:#eee!important;border-radius:3px!important
}
.ipsButton_primary, button.ipsButton.ipsButton_primary, .ipsButton--primary {
  background:var(--eg-accent)!important;border-color:var(--eg-accent)!important;color:#fff!important;font-weight:800!important
}

/* ===== Announcements + Partners ===== */
.eg-ann{margin:0 auto 18px;max-width:1280px}
.eg-ann .eg-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.eg-ann__nav,.eg-ann__btn,[data-eg-ann-dir]{display:none!important}
.eg-ann__view{overflow:hidden;height:42px;width:100%;background:rgba(0,0,0,.18)}
.eg-ann__track{display:flex;width:max-content;height:42px;transform:translate3d(0,0,0)}
.eg-ann__set{display:flex;align-items:center;flex:none;height:42px}
.eg-ann__item{
  display:inline-flex;align-items:center;gap:10px;padding:0 22px;color:#d7d3d4;text-decoration:none;
  white-space:nowrap;font-size:13px;font-weight:700;line-height:42px
}
.eg-ann__item:before{content:"";width:16px;height:2px;flex:none;background:#da3633}
.eg-ann__item:hover{color:#fff}
.eg-partners-board{margin:0 auto 18px;max-width:1280px;overflow:hidden}
.eg-partners__view{overflow:hidden;width:100%;background:rgba(0,0,0,.12);padding:14px 0}
.eg-partners__track{display:flex;width:max-content;align-items:center;transform:translate3d(0,0,0);will-change:transform}
.eg-partners__set{display:flex;align-items:center;flex:none;gap:28px;padding:0 18px}
.eg-partner{display:flex;align-items:center;justify-content:center;height:39px;width:154px;flex:0 0 auto;text-decoration:none}
.eg-partner img{display:block;height:39px;width:auto;max-width:100%;object-fit:contain;opacity:.72;filter:brightness(.7) grayscale(.15);transition:opacity .18s ease,filter .18s ease}
.eg-partner:hover img{opacity:1;filter:brightness(1) grayscale(0)}

/* ===== Forums / topics (old EG look) ===== */
.eg-forums{min-width:0}
.eg-forums .eg-section{margin-bottom:18px}
.eg-forum-row{
  display:grid;grid-template-columns:48px minmax(0,1fr) 100px 190px;gap:15px;padding:18px;
  border-bottom:1px solid var(--eg-line);align-items:center
}
.eg-forum-row--server{align-items:start}
.eg-forum-row:last-child{border-bottom:0}
.eg-forum-icon{
  display:grid;place-items:center;width:42px;height:42px;border-radius:4px;
  background:rgba(218,54,51,.12);border:1px solid rgba(218,54,51,.32);color:#da3633;font-size:18px;flex:0 0 42px
}
.eg-forum-name{font-size:15px;font-weight:800;margin:0 0 7px}
.eg-forum-name a{color:#eee!important;text-decoration:none!important}
.eg-forum-name a:hover{color:#fff!important}
.eg-subforums{display:flex;flex-wrap:wrap;gap:5px;list-style:none;padding:0;margin:7px 0 0}
.eg-subforums a{
  display:inline-flex;align-items:center;gap:6px;background:rgba(255,255,255,.04);padding:4px 8px;
  font-size:11px;font-weight:600;border-radius:2px;color:#ddd!important;text-decoration:none!important
}
.eg-subforums a i{color:var(--eg-accent);font-size:11px;width:12px;text-align:center}
.eg-on{
  display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:14px;margin-left:6px;
  padding:0 5px;border-radius:2px;background:#2ea043;color:#fff;font-size:9px;font-weight:800;letter-spacing:.08em
}
.eg-forum-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px;text-align:center}
.eg-forum-counts small{display:block;font-size:9px;text-transform:uppercase;color:var(--eg-muted);letter-spacing:.04em}
.eg-forum-counts strong{font-size:16px}
.eg-forum-latest{background:transparent;padding:0 0 0 14px;min-width:0;font-size:12px;border-left:1px solid var(--eg-line)}
.eg-forum-latest a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:#eee!important;text-decoration:none!important}
.eg-forum-latest time,.eg-forum-latest small{color:var(--eg-muted);font-size:11px}
.eg-server-hero{
  position:relative;margin:8px 0 10px;min-height:148px;border-radius:6px;overflow:hidden;
  border:1px solid rgba(218,54,51,.42);background:#120f10 center/cover no-repeat
}
.eg-server-hero__art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.eg-server-hero:before{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(10,7,8,.94) 0%,rgba(10,7,8,.62) 46%,rgba(10,7,8,.18) 100%)
}
.eg-server-hero__copy{position:relative;z-index:2;padding:16px 16px 44px}
.eg-server-hero__copy small{display:inline-flex;align-items:center;gap:8px;color:#da3633;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.eg-server-hero__copy small:before{content:"";width:18px;height:3px;background:#da3633}
.eg-server-hero__copy strong{display:block;margin:8px 0 4px;font-size:30px;line-height:1;letter-spacing:.04em;text-transform:uppercase;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.55)}
.eg-server-hero__copy em{display:block;font-style:normal;color:#c9c4c5;font-size:11px;letter-spacing:.16em;text-transform:uppercase}
.eg-server-hero__staff{
  position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;flex-wrap:wrap;gap:6px 16px;
  padding:8px 14px;background:linear-gradient(180deg,transparent,rgba(8,6,7,.9));font-size:12px;color:#eee
}
.eg-server-hero__staff b{color:#3dd68c;font-weight:800;margin-right:6px}
.eg-server-hero__brand{color:#da3633!important;font-weight:800}
.eg-server-hero__apply{
  display:inline-flex;align-items:center;justify-content:center;margin-left:4px;min-height:14px;padding:0 5px;
  border-radius:2px;background:#2ea043;color:#fff!important;font-size:9px;font-weight:800;letter-spacing:.08em;text-decoration:none;text-transform:uppercase
}
.eg-server-ip{margin:0 0 8px;color:#d7d3d4;font-size:13px;font-weight:700}
.eg-server-ip i{color:#da3633;margin-right:6px}
.eg-topic-row{
  display:grid;grid-template-columns:minmax(0,1fr) 120px 180px;gap:12px;padding:14px 18px;
  border-bottom:1px solid var(--eg-line);align-items:center
}
.eg-topic-row:last-child{border-bottom:0}
.eg-topic-row__title{font-weight:800;margin:0}
.eg-topic-row__title a{color:#eee!important;text-decoration:none!important}
.eg-topic-row__meta{color:var(--eg-muted);font-size:12px}

/* EG forums: pure CSS (no body.eg-ips-forums JS gate) */
/* ===== Restyle native IPS5 forum index / category / topic list ===== */
body .ipsPageHeader--forum-table,
body .ipsPageHeader--topic-list{
  background:var(--eg-panel)!important;border:1px solid var(--eg-line)!important;border-radius:3px!important;
  margin-bottom:18px!important;padding:0!important;overflow:hidden
}
body .ipsPageHeader__title{
  margin:0!important;padding:15px 18px!important;font-size:14px!important;text-transform:uppercase!important;
  font-weight:800!important;letter-spacing:.03em!important;color:#fff!important;
  border-left:4px solid var(--eg-accent);background:rgba(255,255,255,.035)
}
body .ipsBox--forumCategory,
body .ipsBox--forum-categories,
body .ipsBox--forumsTable{
  background:var(--eg-panel)!important;border:1px solid var(--eg-line)!important;border-radius:3px!important;
  margin:0 0 18px!important;overflow:hidden;box-shadow:none!important
}
body .ipsBox--forumCategory .ipsBox__header,
body .ipsBox--forum-categories .ipsBox__header{
  display:flex!important;align-items:center!important;gap:10px!important;
  margin:0!important;padding:15px 18px!important;background:rgba(255,255,255,.035)!important;
  border-bottom:1px solid var(--eg-line)!important;border-left:4px solid var(--eg-accent)!important;
  font-size:14px!important;text-transform:uppercase!important;font-weight:800!important;letter-spacing:.03em!important;color:#fff!important
}
body .ipsBox--forumCategory .ipsBox__header a,
body .ipsBox--forum-categories .ipsBox__header a{color:#fff!important;text-decoration:none!important}
body .eg-cat-ico{
  color:var(--eg-accent)!important;margin-right:12px!important;font-size:14px!important;
  width:1.1em;text-align:center;flex:none;line-height:1
}
body .ipsBox--forumCategory .ipsBox__header > a,
body .ipsBox--forum-categories .ipsBox__header > a{
  display:inline-flex!important;align-items:center!important;gap:0!important;min-width:0
}
body .ipsBox__header-toggle{margin-left:auto;color:#aaa!important}
body .ipsData--forum-category,
body .ipsData--category{
  display:block!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important
}
/* Category / forum index rows only — never topic list */
body .ipsData__item[data-forumid]{
  display:grid!important;grid-template-columns:48px minmax(0,1fr) minmax(100px,120px) minmax(160px,220px)!important;
  gap:15px!important;align-items:center!important;padding:18px!important;
  border:0!important;border-bottom:1px solid var(--eg-line)!important;background:transparent!important;margin:0!important;
  list-style:none!important;position:relative
}
body .ipsData__item[data-forumid]:last-child{border-bottom:0!important}
body .ipsBox--forumsTable .ipsData__item .ipsLinkPanel,
body .ipsData--topic-list .ipsData__item .ipsLinkPanel{display:none!important}
body .ipsData__image{
  width:42px!important;height:42px!important;margin:0!important;padding:0!important;
  display:grid!important;place-items:center!important;background:transparent!important;border:0!important
}
/* Native IPS FA forum icons (set in DB) — same look, no JS overlay */
body .ipsData__item[data-forumid] .ipsData__image,
body .ipsData__item[data-forumid] .ipsData__image > span,
body .ipsData__item[data-forumid] .ipsData__image .ipsIcon,
body .eg-forum-icon{
  display:grid!important;place-items:center!important;width:42px!important;height:42px!important;border-radius:4px!important;
  background:rgba(218,54,51,.12)!important;border:1px solid rgba(218,54,51,.32)!important;color:#da3633!important;font-size:18px!important;
  box-sizing:border-box!important
}
body .ipsData__item[data-forumid] .ipsData__image i,
body .ipsData__item[data-forumid] .ipsData__image svg,
body .eg-forum-icon i{
  color:#da3633!important;font-size:18px!important;line-height:1!important;width:auto!important;height:auto!important
}
/* Hide default unread/folder glyph flash before FA icon paints */
body .ipsData__item[data-forumid] .ipsData__image img[src*="forum"],
body .ipsData__item[data-forumid] .ipsData__image img[src*="unread"],
body .ipsData__item[data-forumid] .ipsData__image img[src*="read"]{
  display:none!important
}
body .ipsData__content,
body .ipsData__main{min-width:0;padding:0!important;margin:0!important;background:transparent!important;border:0!important}
body .ipsData__title h3,
body .ipsData__title a{
  font-size:15px!important;font-weight:800!important;margin:0 0 7px!important;color:#eee!important;text-decoration:none!important
}
body .ipsData__title a:hover{color:#fff!important}
body .ipsData__desc{display:none!important}
body .ipsSubList{
  display:flex!important;flex-wrap:wrap!important;gap:5px!important;list-style:none!important;
  padding:0!important;margin:7px 0 0!important
}
body .ipsSubList__item{margin:0!important;padding:0!important;list-style:none!important}
body .ipsSubList__item a{
  display:inline-flex!important;align-items:center!important;gap:6px!important;
  background:rgba(255,255,255,.04)!important;padding:4px 8px!important;font-size:11px!important;font-weight:600!important;
  border-radius:2px!important;color:#ddd!important;text-decoration:none!important
}
body .ipsSubList__item a i{color:var(--eg-accent);font-size:11px;width:12px;text-align:center}
body .ipsData__stats,
body .ipsData__extra{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;text-align:center!important;
  padding:0!important;margin:0!important;border:0!important;background:transparent!important
}
body .ipsData__stats dt,
body .ipsData__stats .ipsData__stats-label{display:block!important;font-size:9px!important;text-transform:uppercase!important;color:var(--eg-muted)!important;letter-spacing:.04em}
body .ipsData__stats dd,
body .ipsData__stats strong{font-size:16px!important;color:#eee!important;margin:0!important}
body .ipsData__last,
body .ipsData__activity{
  background:transparent!important;padding:0 0 0 14px!important;min-width:0;font-size:12px!important;
  border:0!important;border-left:1px solid var(--eg-line)!important;margin:0!important
}
body .ipsData__last a{color:#eee!important;font-weight:700!important;text-decoration:none!important}
body .ipsData__item.eg-forum-row--server{
  grid-template-columns:48px minmax(0,1fr) minmax(90px,110px) minmax(140px,200px)!important;align-items:start!important
}
body .eg-server-hero{grid-column:1 / -1}
/*
 * IPS5 topic list: li = icon | content | extra(stats+last) | mod
 * Stats use .ipsData__stats-icon[data-stat-value] — do NOT reuse category grid.
 */
body.eg-inner .ipsBox--forumsTable .ipsData__item[data-rowid],
body.eg-inner .ipsBox--forumsTable .ipsData__item[data-ips-hook="topicRow"],
body.eg-inner li.ipsData__item[data-rowid],
body .ipsBox--forumsTable .ipsData__item[data-rowid],
body .ipsBox--forumsTable .ipsData__item[data-ips-hook="topicRow"],
body li.ipsData__item[data-rowid] {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--eg-line) !important;
  background: transparent !important;
  position: relative !important;
  list-style: none !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  grid-template-columns: none !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item[data-rowid]:hover,
body li.ipsData__item[data-rowid]:hover { background: rgba(255,255,255,.025) !important; }
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsLinkPanel,
body li.ipsData__item[data-rowid] .ipsLinkPanel { display: none !important; }
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__icon,
body li.ipsData__item[data-rowid] .ipsData__icon {
  flex: 0 0 48px !important;
  width: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  border: 0 !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsUserPhoto,
body li.ipsData__item[data-rowid] .ipsUserPhoto {
  width: 42px !important; height: 42px !important; border-radius: 50% !important; overflow: hidden !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__content,
body li.ipsData__item[data-rowid] .ipsData__content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__main,
body li.ipsData__item[data-rowid] .ipsData__main {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__title,
body li.ipsData__item[data-rowid] .ipsData__title {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 8px !important;
  margin: 0 !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__title h4,
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__title a,
body li.ipsData__item[data-rowid] .ipsData__title a {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #eee !important;
  text-decoration: none !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__meta,
body li.ipsData__item[data-rowid] .ipsData__meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 10px !important;
  color: var(--eg-muted) !important;
  font-size: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: normal !important;
}
/* Badge / follow star stays with title, not floating mid-row */
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsBadges,
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsFollow,
body li.ipsData__item[data-rowid] .ipsBadges {
  display: inline-flex !important;
  margin: 0 !important;
}
/* Extra = stats + last post (IPS5 nests both here) */
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__extra,
body li.ipsData__item[data-rowid] .ipsData__extra {
  flex: 0 0 auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 16px !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
  min-width: 0 !important;
  background: transparent !important;
  border: 0 !important;
  grid-template-columns: none !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__stats,
body li.ipsData__item[data-rowid] .ipsData__stats {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  min-width: 96px !important;
  border: 0 !important;
  background: transparent !important;
  grid-template-columns: none !important;
  text-align: left !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__stats > li,
body li.ipsData__item[data-rowid] .ipsData__stats > li {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  float: none !important;
  width: auto !important;
  background: transparent !important;
  border: 0 !important;
}
/* Prefer label text; kill attr() number overlay that collided with labels */
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__stats-icon,
body li.ipsData__item[data-rowid] .ipsData__stats-icon {
  display: none !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__stats-icon::before,
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__stats-icon::after,
body li.ipsData__item[data-rowid] .ipsData__stats-icon::before,
body li.ipsData__item[data-rowid] .ipsData__stats-icon::after {
  content: none !important;
  display: none !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__stats-label,
body li.ipsData__item[data-rowid] .ipsData__stats-label {
  display: block !important;
  position: static !important;
  float: none !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #ddd !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__last,
body li.ipsData__item[data-rowid] .ipsData__last {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 2px !important;
  min-width: 140px !important;
  max-width: 200px !important;
  margin: 0 !important;
  padding: 0 0 0 14px !important;
  border: 0 !important;
  border-left: 1px solid var(--eg-line) !important;
  background: transparent !important;
  font-size: 12px !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__last-primary a,
body li.ipsData__item[data-rowid] .ipsData__last-primary a {
  color: #eee !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__last-secondary,
body li.ipsData__item[data-rowid] .ipsData__last-secondary {
  color: var(--eg-muted) !important;
}
body.eg-inner .ipsBox--forumsTable .ipsData__item .ipsData__mod,
body li.ipsData__item[data-rowid] .ipsData__mod {
  flex: 0 0 auto !important;
  margin: 0 !important;
}
/* Hide only forum-index headers — never profile / member headers */
body.eg-inner .ipsPageHeader--forum-table,
body.eg-inner .ipsPageHeader--forums,
body.eg-inner .cForumBrowse > .ipsPageHeader {
  display:none!important
}
/* Profile pages: keep cover / header / IPS profile sidebar visible (do NOT force display on meta/avatar) */
body[data-pageController="profile"] .ipsBox--profileHeader,
body[data-pageController="profile"] .ipsPageHeader.ipsBox--profileHeader,
body[data-pageModule="members"] .ipsBox--profileHeader,
body[data-pageController="profile"] .ipsLayout__secondary,
body[data-pageController="profile"] aside.ipsLayout__secondary,
body[data-pageController="profile"] [data-ips-hook="sidebar"],
body[data-pageModule="members"] .ipsLayout__secondary,
body[data-pageModule="members"] [data-ips-hook="sidebar"] {
  visibility:visible !important;
  height:auto !important;
  overflow:visible !important;
}
body[data-pageController="profile"] .ipsCoverPhoto,
body[data-pageModule="members"] .ipsCoverPhoto {
  /* Must stay grid — IPS stacks overlay-buttons (Edycja profilu) via grid-area/place-self */
  display:grid !important;
  visibility:visible !important;
  height:auto !important;
  overflow:visible !important;
}
body.eg-inner .ipsButtonBar,
body.eg-inner [data-role="tablePagination"] + .ipsButtonBar{
  background:var(--eg-panel)!important;border:1px solid var(--eg-line)!important;border-radius:3px!important;
  margin-bottom:12px!important;padding:8px 12px!important
}
@media(max-width:1000px){
  body .ipsData__item[data-forumid]{grid-template-columns:42px minmax(0,1fr) 90px!important}
  body .ipsData__item[data-rowid] .ipsData__extra{
    flex-wrap:wrap!important; width:100%!important; margin-left:48px!important;
  }
  body .ipsData__item[data-rowid] .ipsData__last{border-left:0!important;padding-left:0!important}
}
@media(max-width:760px){
  body .ipsData__item[data-forumid]{
    grid-template-columns:minmax(0,1fr)!important;padding:15px 12px!important
  }
  body .ipsData__item[data-rowid]{
    flex-wrap:wrap!important;padding:14px 12px!important
  }
  body .ipsData__item[data-rowid] .ipsData__icon{display:none!important}
  body .ipsData__image{display:none!important}
}

/* Topic / post view */
body .cTopic,
body .ipsBox--comments,
body .ipsComment,
body .cPost,
body [data-role="commentFeed"] .ipsBox{
  background:var(--eg-panel)!important;border:1px solid var(--eg-line)!important;border-radius:3px!important;
  box-shadow:none!important;margin-bottom:14px!important
}
body .ipsComment__header,
body .cAuthorPane,
body .ipsComment_author,
body .ipsEntry__author-column{
  background:rgba(255,255,255,.03)!important;border-color:var(--eg-line)!important
}
body .ipsComment_content,
body .cPost_contentWrap,
body .ipsRichText{color:#ddd!important}
body .ipsPageHeader--topic{
  background:var(--eg-panel)!important;border:1px solid var(--eg-line)!important;border-radius:3px!important;margin-bottom:14px!important
}
body .ipsPageHeader--topic .ipsPageHeader__title{
  border-left:4px solid var(--eg-accent);padding:14px 16px!important;font-weight:800!important;color:#fff!important
}

/* Author nick: rank color from egauth profile.js — never force white/eee on username links */
body .ipsBox .ipsEntry__username a.ipsUsername,
body .ipsBox .ipsEntry__username a.eg-nick,
body .ipsEntry__username a.ipsUsername,
body .ipsEntry__username a.eg-nick,
body .ipsEntry__author-column a.ipsUsername,
body .ipsEntry__author-column a.eg-nick,
body .cAuthorPane_author a,
body .cAuthorPane h3 a,
body .ipsComment_author a,
body a.ipsUsername.eg-nick,
body a.eg-nick{
  font-weight:800!important;
  text-decoration:none!important;
}
/* Kill inherited panel color:#eee !important on painted nicks — inline color wins via specificity + JS important */
body .ipsBox a.eg-nick,
body .ipsComment a.eg-nick,
body .ipsEntry a.eg-nick{
  /* intentionally no color — egauth sets color:!important inline */
}
/* === EG-RANK-COLOR-SCOPE BEGIN (v44) ===
 * Rank color on: nick text, group name text, group/rank icons (eg-role-ico / FA in group).
 * Neutral: IPS style/mod badge (::before), contact icons, stats icons+numbers.
 * Center group row under nick in author column.
 * Do NOT touch EG-FORUMS-GUTTER-ALIGN.
 */
body .ipsEntry__username a.eg-nick i.eg-role-ico,
body .ipsEntry__author-column a.eg-nick i.eg-role-ico,
body a.ipsUsername.eg-nick i.eg-role-ico,
body .eg-role-ico{
  margin-right:5px;
  /* color from egauth inline rank color — do not force muted */
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  vertical-align:middle;
}
body .eg-role-ico::before{
  line-height:1!important;
  vertical-align:middle;
  display:block;
}
/* Group row: flex-center icons+name; full width under nick in author pane */
body .ipsEntry__author-column .ipsEntry__group,
body .ipsEntry__author-column [data-ips-hook="postUserGroup"],
body .cAuthorPane .ipsEntry__group,
body .cAuthorPane_group{
  display:flex!important;
  flex-wrap:wrap;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  max-width:100%;
  box-sizing:border-box;
  text-align:center!important;
  gap:5px;
  line-height:1.2!important;
  margin-left:0!important;
  margin-right:0!important;
}
body .ipsEntry__group,
body .ipsEntry__moderatorBadge,
body .ipsCoverPhoto__desc,
body .cUserHovercard .ipsPhotoPanel__secondary,
body .cAuthorPane_group{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px;
  line-height:1.2!important;
  vertical-align:middle;
}
/* Author-column group wins over inline-flex above */
body .ipsEntry__author-column .ipsEntry__group,
body .ipsEntry__author-column [data-ips-hook="postUserGroup"]{
  display:flex!important;
}
body .ipsEntry__author-column .ipsEntry__moderatorBadge,
body .ipsEntry__group .ipsEntry__moderatorBadge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px;
}
/* Group FA / role icons: inherit rank color from painted span / JS (not muted) */
body .ipsEntry__group i.eg-role-ico,
body .ipsEntry__group i[class*="fa-"],
body .ipsEntry__moderatorBadge i.eg-role-ico,
body .ipsEntry__moderatorBadge i[class*="fa-"],
body .ipsCoverPhoto__desc i[class*="fa-"],
body .cUserHovercard .ipsPhotoPanel__secondary i[class*="fa-"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:1.05em;
  height:1.05em;
  line-height:1!important;
  vertical-align:middle;
  flex:none;
  margin:0;
  /* color left to inline rank color / inheritance */
}
/* IPS style / moderator badge chrome (::before) stays neutral — not rank color */
body .ipsEntry__moderatorBadge::before,
body .ipsEntry__group::before{
  color:#c9c4c5!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:1.05em;
  height:1.05em;
  line-height:1!important;
  vertical-align:middle;
  flex:none;
  margin:0;
  position:relative;
  top:0;
}
body .ipsEntry__group i::before,
body .ipsEntry__moderatorBadge i::before,
body .ipsEntry__moderatorBadge::before{
  line-height:1!important;
  vertical-align:middle;
  display:block;
}
/* Author / hovercard stats: never inherit rank color */
body .ipsEntry__authorStats,
body .ipsEntry__authorStats a,
body .ipsEntry__authorStats i,
body .ipsEntry__authorStats [data-i-el="number"],
body .ipsEntry__authorStats [data-i-el="label"],
body .ipsEntry__author-column .ipsEntry__authorStats,
body .ipsEntry__author-column .ipsEntry__authorStats a,
body .ipsEntry__author-column .ipsEntry__authorStats i,
body .ipsEntry__author-column .ipsEntry__authorStats [data-i-el="number"],
body [data-ips-hook="postUserStats"] a,
body [data-ips-hook="postUserStats"] i,
body [data-ips-hook="postUserStats"] [data-i-el="number"],
body [data-ips-hook="profileHoverStats"],
body [data-ips-hook="profileHoverStats"] .i-color_hard,
body .cUserHovercard [data-ips-hook="profileHoverStats"] .i-color_hard{
  color:#c9c4c5!important;
}
body [data-ips-hook="profileHoverStats"] .i-color_soft,
body .ipsEntry__authorStats [data-i-el="label"]{
  color:var(--eg-muted,#a7a2a4)!important;
}
/* === EG-RANK-COLOR-SCOPE END === */
/* Compact Steam / Discord / PM row — centered under avatar (full author-column width) */
body .ipsEntry__author-column .eg-auth-icos--author,
body .cAuthorPane .eg-auth-icos--author,
body .ipsComment_author .eg-auth-icos--author,
body .ipsEntry__author .eg-auth-icos--author{
  display:flex!important;
  flex-wrap:wrap;
  justify-content:center!important;
  align-items:center;
  align-self:stretch;
  text-align:center!important;
  width:100%!important;
  max-width:100%;
  box-sizing:border-box;
  gap:5px;
  margin:8px 0 4px;
  padding:0;
}
body .ipsEntry__author-column .eg-auth-icos--author .eg-auth-ico,
body .cAuthorPane .eg-auth-icos--author .eg-auth-ico{
  width:24px;height:24px;font-size:12px;flex:none
}
/* PM / Steam / Discord under avatar: muted gray — never inherit rank/group nick color
   (steamcommunity.com/profiles used to match a[href*='profile'] paint) */
.eg-auth-icos--author a,
.eg-auth-icos--author i,
body .eg-auth-icos--author a,
body .eg-auth-icos--author i,
body .ipsEntry__author-column .eg-auth-icos--author a,
body .ipsEntry__author-column .eg-auth-icos--author i,
body .cAuthorPane .eg-auth-icos--author a,
body .cAuthorPane .eg-auth-icos--author i,
body .ipsComment_author .eg-auth-icos--author a,
body .ipsComment_author .eg-auth-icos--author i,
body .eg-auth-icos--author a[href*="steamcommunity.com"],
body .eg-auth-icos--author a[href*="steamcommunity.com"] i,
body .eg-auth-ico--steam,
body .eg-auth-ico--steam i{
  color:#c9c4c5!important;
}
.eg-auth-icos--author a:hover,
.eg-auth-icos--author a:hover i,
body .eg-auth-icos--author a:hover,
body .eg-auth-icos--author a:hover i{
  color:#fff!important;
}

@media(max-width:1000px){
  .eg-portal-grid{grid-template-columns:minmax(0,1fr)!important}
  /* Mobile: forums (działy) first, sidebar sections below */
  .eg-portal-grid .eg-forums-host{order:1 !important}
  .eg-portal-grid .eg-sidebar{order:2 !important}
  .eg-forum-row{grid-template-columns:42px minmax(0,1fr) 90px}
  .eg-forum-latest{grid-column:2/-1}
}
@media(max-width:760px){
  .eg-ips-topnav__links{display:none!important}
  .eg-ips-topnav__burger{display:grid}
  .eg-ips-topnav__counts{display:none}
  .eg-ips-topnav__auth .eg-auth-btn{
    min-height:34px;width:34px;padding:0;font-size:14px;gap:0;
  }
  .eg-ips-topnav__auth .eg-auth-btn__txt{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .eg-ips-topnav__auth .eg-auth-btn i{margin:0}
  .eg-forum-row{grid-template-columns:minmax(0,1fr)!important;padding:15px 12px;gap:10px}
  .eg-forum-row>*{grid-column:1/-1;min-width:0}
  .eg-forum-latest{border-left:0;padding:8px 0 0}
  .eg-server-hero{min-height:72px;max-height:96px}
  .eg-server-hero__copy strong{font-size:18px;margin:0}
  .eg-server-hero__copy small,.eg-server-hero__copy em{display:none}
  .eg-partners__set{gap:16px}
  .eg-partner{width:120px;height:32px}
  .eg-partner img{height:32px}
}
@media(max-width:650px){
  .eg-ann__view,.eg-ann__track,.eg-ann__set{height:36px}
  .eg-ann__item{font-size:12px;padding:0 14px;line-height:36px}
}

/* Mobile: one shared gutter — no stacked left margin/padding */

/* Blog / Cup / Crew (egblog, egcup, egcrew apps) */
body.eg-blog .ipsPageHeader,
body.eg-cup .ipsPageHeader,
body.eg-crew .ipsPageHeader{display:none!important}
body.eg-blog #ipsLayout_mainArea,
body.eg-cup #ipsLayout_mainArea,
body.eg-crew #ipsLayout_mainArea{max-width:1280px;margin:0 auto}

/* Global EG polish for IPS forms / boxes / buttons (desktop + mobile) */
.ipsBox, .ipsForm, .ipsField_title, .ipsFieldRow, .ipsButtonBar, .ipsPageHeader,
.ipsData, .ipsTabs, .ipsMenu, .ipsModal, .ipsDialog, .cWidgetContainer .ipsWidget {
  border-radius:3px !important;
}
.ipsBox, .ipsWidget, .ipsData, .cWidgetContainer .ipsWidget {
  background:var(--eg-panel) !important;
  border:1px solid var(--eg-line) !important;
  box-shadow:none !important;
  color:#eee !important;
}
.ipsButton:not(.ipsButton--inherit),
.ipsButton_primary, button.ipsButton {
  background:var(--eg-accent) !important; border:0 !important; border-radius:3px !important;
  color:#fff !important; font-weight:800 !important;
}
input[type=text], input[type=password], input[type=email], input[type=search],
textarea, select, .ipsField_fieldList input {
  background:#161213 !important; border:1px solid var(--eg-line) !important;
  color:#eee !important; border-radius:6px !important;
}
.ipsLogin, .ipsRegister, [data-role="loginForm"] {
  max-width:480px; margin:24px auto; padding:18px;
  background:var(--eg-panel); border:1px solid var(--eg-line); border-radius:6px;
}
/* (mobile gutters consolidated at end of file) */


/* Footer full-bleed across viewport (escape IPS 1280 containers) */
.ipsFooter,
.ipsFooter__footer,
.ipsFooter__align,
[data-ips-hook="footerWrapper"],
#ipsLayout_footer {
  width: 100% !important;
  max-width: none !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
.eg-community {
  margin-bottom: 0 !important;
}
/* Keep full-bleed footer; content columns stay centered at 1280 */
.eg-community__inner,
.eg-community__bottom,
.eg-community__ips-extras {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}
/* Never show theme / dark / light / system preferences */
.ipsColorSchemeChanger,
[data-ips-hook="themeList"],
[data-ips-hook="themes"],
#elNavTheme,
#elNavTheme_menu,
button#elNavTheme,
.eg-community__ips-extras .ipsColorSchemeChanger,
.eg-community__ips-extras [data-ips-hook="themeList"],
.eg-community__ips-extras [data-ips-hook="themes"],
.eg-community__ips-extras [data-ipsColorScheme],
button[aria-label*="theme" i],
button[aria-label*="Theme" i],
li:has(> .ipsColorSchemeChanger),
li:has(> #elNavTheme) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Hide stock IPS sidebar widgets — EG sidebar replaces them */
body.eg-home .ipsLayout__secondary,
body.eg-home aside.ipsLayout__secondary:not(.eg-sidebar),
body.eg-home [data-ips-hook="sidebar"]:not(.eg-sidebar) {
  display: none !important;
}
body.eg-home .eg-forums-host .ipsLayout__primary,
body.eg-home .eg-forums-host .ipsLayout__main,
body.eg-home .eg-forums-host #ipsLayout_mainArea,
body.eg-home .eg-forums-host .ipsBox--forumCategory,
body.eg-home .eg-forums-host .ipsBox--forum-categories,
body.eg-home .eg-forums-host .ipsBox--forumsTable {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Hide FORUMS / Start new topic bar (final override) — never profile */
body .ipsPageHeader--forum-table,
body .ipsPageHeader--forums,
body .cForumBrowse > .ipsPageHeader,
body .eg-forums-host > .ipsPageHeader:not(.ipsBox--profileHeader),
body #ipsLayout_mainArea > .ipsPageHeader--forum-table,
body #ipsLayout_mainArea > .ipsPageHeader:has(.ipsButton):not(.ipsBox--profileHeader):not([data-role="profileHeader"]),
body .ipsPageHeader:has([data-role="pageActionButtons"]):not(.ipsBox--profileHeader):not([data-role="profileHeader"]),
body .ipsPageHeader:has(a[href*="topic/add"]),
body .ipsPageHeader:has(a[href*="startTopic"]) {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}
/* Profile header visible — do not override CoverPhotoMeta/avatar display model */
body[data-pageController="profile"] #ipsLayout_mainArea > .ipsPageHeader.ipsBox--profileHeader,
body[data-pageController="profile"] #ipsLayout_mainArea > .ipsPageHeader[data-role="profileHeader"],
body[data-pageModule="members"] #ipsLayout_mainArea > .ipsPageHeader.ipsBox--profileHeader,
body[data-pageController="profile"] .ipsLayout__secondary,
body[data-pageController="profile"] aside.ipsLayout__secondary,
body[data-pageController="profile"] [data-ips-hook="sidebar"] {
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
}
body[data-pageController="profile"] .ipsCoverPhoto {
  display: grid !important;
  visibility: visible !important;
  overflow: visible !important;
}
/* Keep IPS flex meta row — forcing display:block here blows avatar to full width */
body[data-pageController="profile"] .ipsCoverPhotoMeta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  gap: 16px !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
}
body[data-pageController="profile"] .ipsCoverPhoto__avatar,
body[data-pageController="profile"] #elProfilePhoto {
  display: block !important;
  flex: 0 0 120px !important;
  width: 120px !important;
  max-width: 120px !important;
  min-width: 120px !important;
  height: 120px !important;
  max-height: 120px !important;
  min-height: 120px !important;
  overflow: hidden !important;
  position: relative !important;
  border-radius: 50% !important;
  align-self: flex-end !important;
}
body[data-pageController="profile"] .ipsCoverPhoto__avatar .ipsUserPhoto,
body[data-pageController="profile"] #elProfilePhoto .ipsUserPhoto {
  display: block !important;
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  border-radius: 50% !important;
}
body[data-pageController="profile"] .ipsCoverPhoto__avatar img,
body[data-pageController="profile"] #elProfilePhoto img {
  width: 120px !important;
  height: 120px !important;
  max-width: 120px !important;
  max-height: 120px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  position: absolute !important;
  inset: 0 !important;
}
body[data-pageController="profile"] .ipsCoverPhoto__titles,
body[data-pageController="profile"] .ipsCoverPhoto__stats {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Profile: pull avatar/meta up over cover; raise left aside to top of profile grid */
body[data-pageController="profile"] .ipsBox--profileHeader,
body[data-pageModule="members"] .ipsBox--profileHeader {
  position: relative !important;
  margin-bottom: 12px !important;
}
body[data-pageController="profile"] .ipsCoverPhoto.ipsCoverPhoto--profile {
  min-height: 180px !important;
  margin-bottom: 0 !important;
}
body[data-pageController="profile"] .ipsCoverPhotoMeta {
  position: relative !important;
  margin-top: -64px !important;
  padding-top: 0 !important;
  z-index: 3 !important;
}
body[data-pageController="profile"] .ipsProfile,
body[data-pageModule="members"] .ipsProfile {
  align-items: start !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  gap: 16px !important;
}
body[data-pageController="profile"] .ipsProfile__aside,
body[data-pageController="profile"] aside.ipsProfile__aside,
body[data-pageModule="members"] .ipsProfile__aside {
  margin-top: 0 !important;
  padding-top: 0 !important;
  align-self: start !important;
  align-content: start !important;
  /* Prevent collapsed subgrid track (was ~1.6px → vertical "Rookie" text) */
  display: block !important;
  grid-template-columns: none !important;
}
/* IPS sticky-outer: align-self:end + tall min-height pushes Rookie/badges down */
body[data-pageController="profile"] .ipsProfile__sticky-outer,
body[data-pageModule="members"] .ipsProfile__sticky-outer {
  display: block !important;
  align-self: start !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body[data-pageController="profile"] .ipsProfile__sticky-inner,
body[data-pageController="profile"] .ipsProfile__aside .ipsWidget,
body[data-pageController="profile"] .ipsProfile__aside .ipsBox {
  margin-top: 0 !important;
}
body[data-pageController="profile"] .ipsProfile__sticky-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  top: 72px !important; /* under EG sticky nav */
  align-content: start !important;
}

/* Profile edit / page actions must remain clickable (undo forum-header hide rules) */
body[data-pageController="profile"] .ipsPageHeader__nav,
body[data-pageController="profile"] [data-role="pageActionButtons"],
body[data-pageModule="members"] .ipsPageHeader__nav,
body[data-pageModule="members"] [data-role="pageActionButtons"] {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 50 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  opacity: 1 !important;
}
body[data-pageController="profile"] [data-role="pageActionButtons"] a,
body[data-pageController="profile"] [data-role="pageActionButtons"] button,
body[data-pageController="profile"] .ipsPageHeader__nav a,
body[data-pageController="profile"] .ipsPageHeader__nav button,
body[data-pageModule="members"] [data-role="pageActionButtons"] a,
body[data-pageModule="members"] [data-role="pageActionButtons"] button {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 51 !important;
  cursor: pointer !important;
}
/* Owner "Edycja profilu" lives in cover overlay grid cell — keep above cover image + meta pull-up */
body[data-pageController="profile"] .ipsCoverPhoto > *,
body[data-pageModule="members"] .ipsCoverPhoto > * {
  grid-area: 1 / 1 !important;
}
body[data-pageController="profile"] .ipsCoverPhoto__overlay-buttons,
body[data-pageModule="members"] .ipsCoverPhoto__overlay-buttons,
body[data-pageController="profile"] .ipsCoverPhoto__overlay-buttons .ipsButton,
body[data-pageModule="members"] .ipsCoverPhoto__overlay-buttons .ipsButton,
body[data-pageController="profile"] .ipsCoverPhoto__overlay-buttons a,
body[data-pageModule="members"] .ipsCoverPhoto__overlay-buttons a,
body[data-pageController="profile"] .ipsCoverPhoto__overlay-buttons button,
body[data-pageModule="members"] .ipsCoverPhoto__overlay-buttons button {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 60 !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
}
body[data-pageController="profile"] .ipsCoverPhoto__overlay-buttons,
body[data-pageModule="members"] .ipsCoverPhoto__overlay-buttons {
  display: flex !important;
  place-self: start end !important;
  margin: 10px !important;
}
body[data-pageController="profile"] .ipsPageHeader:has([data-role="pageActionButtons"]),
body[data-pageController="profile"] #ipsLayout_mainArea > .ipsPageHeader:not(.ipsPageHeader--forum-table),
body[data-pageController="profile"] .ipsPageHeader.ipsBox--profileHeader,
body[data-pageController="profile"] .ipsBox--profileHeader {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
}
body[data-pageController="profile"] .ipsCoverPhoto,
body[data-pageModule="members"] .ipsCoverPhoto {
  display: grid !important;
  overflow: visible !important;
}
/* Boardstats: never let overlays eat profile clicks */
.eg-boardstats,
.eg-bs-block,
.eg-bs-body,
.eg-bs-pills,
.eg-boardstats-host {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}
.eg-boardstats a.eg-nick,
.eg-boardstats a.eg-bs-pill {
  pointer-events: auto !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 40 !important;
}

@media (max-width: 760px) {
  /* Band fills viewport; single 12px gutter on the band — kills left empty strip */
  .eg-home-band {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
  .eg-home-band > .eg-portal-top,
  .eg-home-band > .eg-portal-grid,
  .eg-home-band > .eg-boardstats-host,
  .eg-home-band .eg-section,
  .eg-home-band .eg-home-hero,
  .eg-home-band .eg-server-board,
  .eg-home-band .eg-partners-board,
  .eg-home-band .eg-ann,
  .eg-home-band .eg-boardstats,
  .eg-home-band .eg-shoutbox,
  .eg-home-band .eg-elochat,
  .eg-home-band .eg-forums-host,
  .eg-home-band .eg-sidebar,
  .eg-home-band #ipsLayout_mainArea,
  .eg-home-band .ipsLayout__main {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  /* Standalone pages (rank/blog/legal): even side gutters, no double pad */
  body:not(.eg-home) #ipsLayout_mainArea,
  body:not(.eg-home) .ipsLayout__main,
  body.eg-page-shell .eg-page-main,
  body.eg-inner .eg-page-main {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }
  body:not(.eg-home) .eg-section,
  body:not(.eg-home) .eg-modules,
  body:not(.eg-home) .eg-blog,
  body:not(.eg-home) .eg-cup,
  body:not(.eg-home) .eg-legal {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .eg-server-board,
  .eg-partners-board,
  #eg-portal-top .eg-section {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .ipsLayout_container,
  #ipsLayout_body,
  #ipsLayout_contentWrapper,
  #ipsLayout_contentArea {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }
  .eg-community {
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .eg-community__inner,
  .eg-community__bottom,
  .eg-community__ips-extras {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
  .eg-ips-topnav__inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .eg-portal-grid {
    gap: 14px !important;
  }
}

/* Legal pages (PageShell — CMS disabled) */
.eg-legal{max-width:900px;margin:0 auto;padding:8px 0 40px;line-height:1.65;color:#ddd}
.eg-legal h1{margin:0 0 8px;font-size:28px;color:#fff}
.eg-legal-meta{color:#8b8687;margin:0 0 24px}
.eg-legal h2{margin:28px 0 10px;font-size:18px;color:#fff}
.eg-legal p,.eg-legal li{margin:0 0 10px}
.eg-legal ul,.eg-legal ol{margin:0 0 16px;padding-left:22px}
.eg-legal a{color:#da3633;text-decoration:underline}
.eg-legal-box{border:1px solid rgba(255,255,255,.1);border-radius:6px;padding:14px 16px;margin:12px 0 18px;background:rgba(255,255,255,.03)}
.eg-legal-form{white-space:pre-wrap;font-family:inherit;border:1px dashed rgba(255,255,255,.15);padding:14px;border-radius:6px;background:rgba(0,0,0,.2)}
body.eg-page-shell .eg-home-band,
body.eg-page-shell #eg-portal-top,
body.eg-page-shell .eg-server-board,
body.eg-page-shell .eg-boardstats-host,
body.eg-page-shell .eg-elochat{display:none!important}

/* === EG-FORUMS-GUTTER-ALIGN BEGIN === */
/*
 * Home only — kill IPS .ipsWidth auto side gutters (--i-layout-gutter ≈ 40px)
 * so .ipsBox--forumCategory left edge matches .eg-home-band / .eg-server-board.
 * Measured pre-fix (1920vw): server left 192.4, category left 232.4, delta 40px.
 * Revert: delete this BEGIN…END block (see _revert_forums_align.md) or restore
 * eg-stage1.forums-align.BACKUP.css. No JS involved.
 */
body.eg-home .eg-home-band .eg-forums-host .ipsWidth,
body.eg-home .eg-home-band .eg-forums-host .ipsWidth--main-content,
body.eg-home .eg-home-band .eg-forums-host .ipsContentWrap,
body.eg-home .eg-home-band .eg-forums-host .ipsLayout__columns,
body.eg-home .eg-home-band .eg-forums-host .ipsLayout__primary-column,
body.eg-home .eg-home-band .eg-forums-host .ipsLayout__primary,
html.eg-home body.eg-home .eg-forums-host .ipsWidth,
html.eg-home body.eg-home .eg-forums-host .ipsWidth--main-content {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}
body.eg-home .eg-home-band .eg-forums-host .ipsBox--forumCategory,
body.eg-home .eg-home-band .eg-forums-host .ipsBox--forum-categories,
body.eg-home .eg-home-band .eg-forums-host .ipsBox--forumsTable,
body.eg-home .eg-home-band .eg-forums-host .ipsBlockSpacer,
body.eg-home .eg-home-band .eg-forums-host section:has(> .ipsBlockSpacer),
body.eg-home .eg-home-band .eg-forums-host section:has(> .ipsBox--forumCategory) {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}
/* === EG-FORUMS-GUTTER-ALIGN END === */

/* === EG-SNOW-SITE-BG BEGIN === */
/* Site-wide page backdrop only (html/body). Heroes/sections keep their own backgrounds. */
html {
  background-color: #100e0f !important;
  background-image: url(/uploads/eg-snow-bg.webp) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}
html::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.6);
}
body {
  background: transparent !important;
  background-image: none !important;
  position: relative;
  z-index: 1;
}
/* Mobile: lighter asset + scroll attachment (same look, less main-thread / paint cost) */
@media (max-width: 760px) {
  html {
    background-image: url(/uploads/eg-snow-bg-sm.webp) !important;
    background-attachment: scroll !important;
  }
}
/* === EG-SNOW-SITE-BG END === */

/* === EG-PSI-PERF BEGIN === */
/* Stable boxes for JS-filled home widgets (CLS ≤ 0.1) */
.eg-partners__view { min-height: 67px; box-sizing: border-box; }
.eg-ann__view { min-height: 42px; box-sizing: border-box; }
html.eg-home .eg-sidebar,
body.eg-home .eg-sidebar {
  min-height: 420px;
}
html.eg-home .eg-boardstats-host,
body.eg-home .eg-boardstats-host {
  min-height: 280px;
}
@media (max-width:760px) {
  .eg-partners__view { min-height: 60px; }
  .eg-ann__view { min-height: 36px; }
  html.eg-home .eg-sidebar,
  body.eg-home .eg-sidebar { min-height: 360px; }
  html.eg-home .eg-boardstats-host,
  body.eg-home .eg-boardstats-host { min-height: 320px; }
}
.eg-home-hero__img { aspect-ratio: 1024 / 341; }
/* === EG-PSI-PERF END === */

/* Snow bar caps moved to app egsnow (/applications/egsnow/interface/eg-snow.css) — toggle in ACP → Snow */

