:root {
  --rp-bg: #030303;
  --rp-bg-2: #080608;
  --rp-panel: rgba(10, 10, 12, .88);
  --rp-panel-solid: #101012;
  --rp-panel-soft: rgba(255, 255, 255, .035);
  --rp-line: rgba(255, 24, 34, .46);
  --rp-line-soft: rgba(255, 255, 255, .1);
  --rp-hot: #ff1d25;
  --rp-hot-dark: #870006;
  --rp-glow: rgba(255, 0, 18, .30);
  --rp-white: #f8f8f8;
  --rp-text: #e8e1df;
  --rp-muted: #9a918f;
  --rp-dim: #675f5e;
  --rp-green: #20e071;
  --rp-yellow: #ffc14b;
  --rp-blue: #52a8ff;
  --rp-radius: 16px;
  --rp-radius-sm: 10px;
  --rp-max: 1480px;
  --rp-display: 'Pixelify', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --rp-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--rp-bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--rp-text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 0, 18, .18), transparent 26rem),
    radial-gradient(circle at 92% 4%, rgba(255, 0, 18, .12), transparent 24rem),
    linear-gradient(180deg, rgba(0,0,0,.2), rgba(0,0,0,.55)),
    url('/assets/img/rp-wallpaper-backdrop.png') center top / cover fixed no-repeat,
    var(--rp-bg);
  font-family: var(--rp-body);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background: rgba(0,0,0,.36);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .55;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,1), transparent 88%);
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
section { scroll-margin-top: 104px; }

.rp-ambient,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.rp-ambient {
  z-index: -1;
  background:
    radial-gradient(circle at 6% 90%, rgba(255, 0, 0, .16), transparent 22rem),
    radial-gradient(circle at 98% 34%, rgba(255, 20, 30, .10), transparent 26rem),
    linear-gradient(120deg, transparent, rgba(255,0,0,.04) 50%, transparent);
}
.scanlines {
  z-index: 900;
  opacity: .12;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.06) 3px, transparent 4px);
  mix-blend-mode: overlay;
}

.topbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 500;
  border-bottom: 1px solid rgba(255, 0, 18, .52);
  background: rgba(4, 4, 5, .88);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0,0,0,.58), 0 0 28px rgba(255,0,18,.13);
}
.topbar-inner {
  width: min(var(--rp-max), calc(100% - 28px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 204px;
}
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 28px rgba(255,0,18,.28);
  transition: transform .18s ease, filter .18s ease;
}
.brand:hover .brand-logo { transform: translateY(-1px) rotate(-3deg); filter: drop-shadow(0 0 16px rgba(255,0,18,.7)); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong {
  font-family: var(--rp-display);
  letter-spacing: .13em;
  font-size: 1.15rem;
  color: #fff;
}
.brand-copy small {
  font-family: var(--rp-display);
  color: var(--rp-hot);
  letter-spacing: .38em;
  font-size: .68rem;
}
.topnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.topnav a {
  position: relative;
  padding: 11px 10px;
  color: #d8d2d0;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--rp-display);
  font-size: .76rem;
  border-radius: 10px;
}
.topnav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  transform: scaleX(0);
  background: var(--rp-hot);
  box-shadow: 0 0 14px var(--rp-glow);
  transition: transform .16s ease;
}
.topnav a:hover,
.topnav a.active { color: #fff; background: rgba(255,255,255,.045); }
.topnav a:hover::after,
.topnav a.active::after { transform: scaleX(1); }
.command-search {
  width: clamp(170px, 16vw, 260px);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(0,0,0,.48);
}
.command-search span {
  color: var(--rp-dim);
  font-family: var(--rp-display);
  font-size: .66rem;
  white-space: nowrap;
}
.command-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: .88rem;
}
.command-search input::placeholder { color: rgba(255,255,255,.38); }
.account-chip {
  min-width: 218px;
  max-width: 280px;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(0,0,0,.48);
  position: relative;
  overflow: hidden;
}
.account-chip::after {
  content: attr(data-session);
  position: absolute;
  right: 8px;
  top: 5px;
  font-family: var(--rp-display);
  font-size: .52rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .86;
}
.account-chip[data-session="active"] { border-color: rgba(0,255,118,.48); box-shadow: 0 0 24px rgba(0,255,118,.08); }
.account-chip[data-session="active"]::after { color: var(--rp-green); }
.account-chip[data-session="checking"] { border-color: rgba(255,190,60,.48); box-shadow: 0 0 24px rgba(255,190,60,.08); }
.account-chip[data-session="checking"]::after { color: var(--rp-yellow); }
.account-chip[data-session="guest"]::after { color: var(--rp-muted); }
.account-chip:hover { border-color: rgba(255,0,18,.58); }
.account-chip img { width: 34px; height: 34px; object-fit: contain; border-radius: 9px; background: #000; }
.account-chip strong,
.account-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 44px; }
.account-chip strong { color: #fff; font-family: var(--rp-display); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.account-chip small { color: var(--rp-muted); font-size: .68rem; }
.account-chip[data-session="active"] small { color: rgba(180,255,206,.82); }
.account-chip[data-session="checking"] small { color: rgba(255,221,150,.88); }
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-action,
.top-icon,
.nav-trigger,
.btn,
.contact-form button,
.context-menu button,
.footer-actions button,
.inline-refresh,
.settings-actions button,
.settings-actions a,
.actions a,
.actions button {
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  color: var(--rp-white);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.top-action:hover,
.top-icon:hover,
.nav-trigger:hover,
.btn:hover,
.contact-form button:hover,
.context-menu button:hover,
.footer-actions button:hover,
.footer-actions a:hover,
.inline-refresh:hover,
.settings-actions button:hover,
.settings-actions a:hover,
.actions a:hover,
.actions button:hover {
  border-color: rgba(255, 35, 45, .8);
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255,0,18,.18);
}
.top-action {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-family: var(--rp-display);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.top-action-primary,
.btn-primary,
.contact-form button,
.actions a.primary,
.actions button.primary {
  border-color: rgba(255, 20, 30, .74);
  background: linear-gradient(180deg, #e71924, #840007);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 24px rgba(255,0,18,.20);
}
.top-icon,
.nav-trigger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--rp-hot);
}
.top-icon img { width: 28px; height: 28px; object-fit: contain; }
.nav-trigger { gap: 5px; }
.nav-trigger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--rp-hot);
  box-shadow: 0 0 10px var(--rp-glow);
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 600;
  width: min(360px, 88vw);
  padding: 24px;
  border-right: 1px solid rgba(255, 0, 18, .44);
  background: rgba(4,4,5,.94);
  backdrop-filter: blur(20px);
  transform: translateX(-103%);
  transition: transform .24s ease;
  box-shadow: 20px 0 80px rgba(0,0,0,.65);
}
.side-menu.open { transform: translateX(0); }
.side-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.side-head img { width: 58px; height: 58px; object-fit: contain; border-radius: 12px; background: #000; }
.side-head div { display: grid; gap: 3px; }
.side-head strong { font-family: var(--rp-display); letter-spacing: .08em; }
.side-head small { color: var(--rp-muted); text-transform: uppercase; letter-spacing: .08em; }
.side-menu nav { display: grid; gap: 9px; }
.side-menu nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  color: #d8d2d0;
  font-family: var(--rp-display);
  letter-spacing: .06em;
}
.side-menu nav a:hover,
.side-menu nav a.active {
  border-color: rgba(255, 0, 18, .72);
  background: rgba(255, 0, 18, .12);
  color: #fff;
}
.side-menu nav img { width: 40px; height: 40px; object-fit: contain; border-radius: 7px; }
.side-status {
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
  display: grid;
  gap: 10px;
}
.side-status div { display: flex; align-items: center; justify-content: space-between; color: var(--rp-muted); font-size: .84rem; }
.side-status strong { color: var(--rp-green); font-family: var(--rp-display); font-size: .8rem; text-transform: uppercase; }

.site-shell {
  width: min(var(--rp-max), calc(100% - 28px));
  margin: 0 auto;
  padding: 26px 0 54px;
  display: grid;
  gap: 18px;
}
.section-frame { position: relative; overflow: hidden; }
.panel-red,
.stat-card {
  position: relative;
  border: 1px solid rgba(255, 25, 35, .34);
  border-radius: var(--rp-radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018)),
    linear-gradient(180deg, rgba(52, 0, 4, .28), rgba(0,0,0,.34)),
    rgba(9, 9, 11, .84);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 70px rgba(0,0,0,.36),
    0 0 0 1px rgba(0,0,0,.55);
}
.panel-red::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(255,0,18,.08), transparent),
    radial-gradient(circle at 10% 0%, rgba(255,0,18,.16), transparent 28rem);
  opacity: .66;
}
.panel-red > *,
.stat-card > * { position: relative; z-index: 1; }
.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  gap: 18px;
}
.hero-copy,
.terminal-panel,
.panel-red:not(.hero-copy):not(.terminal-panel) { padding: clamp(20px, 2vw, 30px); }
.hero-copy {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-logo-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-logo-line img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255,0,18,.42));
}
.hero-logo-line span {
  color: #fff;
  font-family: var(--rp-display);
  letter-spacing: .08em;
  text-transform: lowercase;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--rp-hot);
  font-family: var(--rp-display);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
}
h1, h2, h3 {
  margin: 0;
  color: var(--rp-white);
  font-family: var(--rp-display);
  line-height: 1.05;
  letter-spacing: .04em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3.4rem, 6.8vw, 6.9rem); max-width: 12ch; text-shadow: 0 0 30px rgba(255,0,18,.26); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.2rem); }
h3 { font-size: 1rem; }
.lead,
.section-copy,
.section-head p,
.hero-copy p:not(.eyebrow) { color: #c9c1bf; line-height: 1.7; }
.lead { max-width: 58ch; font-size: 1.04rem; }
.hero-actions,
.venue-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-actions { margin-top: 26px; }
.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 10px;
  color: #fff;
  font-family: var(--rp-display);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}
.terminal-panel { display: grid; align-content: start; gap: 16px; }
.panel-heading,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.compact-heading { margin-bottom: 4px; }
.section-head p { margin: 0; max-width: 56ch; }
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(32,224,113,.28);
  border-radius: 99px;
  background: rgba(32,224,113,.08);
  color: var(--rp-green);
  font-family: var(--rp-display);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-dot span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--rp-green);
  box-shadow: 0 0 14px rgba(32,224,113,.8);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .45; transform: scale(.75); } }
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.terminal-grid-session {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.terminal-grid div,
.terminal-feed,
.tile-card,
.server-card,
.comm-card,
.news-list,
.social-icons a,
.contact-form label {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.32);
  border-radius: var(--rp-radius-sm);
}
.terminal-grid div {
  min-height: 92px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 8px;
}
.terminal-grid span,
.stat-card small,
.server-meta span,
.social-icons small,
.tile-card small { color: var(--rp-muted); font-size: .76rem; }
.terminal-grid strong,
.stat-card strong {
  color: var(--rp-hot);
  font-family: var(--rp-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.terminal-feed {
  padding: 16px;
  display: grid;
  gap: 10px;
}
.terminal-feed p { margin: 0; color: #d3ccca; }
.terminal-feed span {
  display: inline-block;
  min-width: 48px;
  margin-right: 8px;
  color: var(--rp-hot);
  font-family: var(--rp-display);
}
.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  min-height: 126px;
  padding: 17px;
  display: grid;
  gap: 9px;
  align-content: center;
}
.stat-card:nth-child(1) strong { color: var(--rp-green); }
.stat-card:nth-child(2) strong { color: var(--rp-blue); }
.stat-card:nth-child(3) strong { color: var(--rp-yellow); }
.stat-card span { color: #b8afad; font-size: .84rem; }

.launcher-grid,
.game-icons,
.mini-tile-grid,
.social-icons,
.servers-grid,
.comms-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}
.launcher-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.game-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.tile-card {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 10px;
  overflow: hidden;
  isolation: isolate;
  min-height: 178px;
}
.tile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(255,0,18,.16), transparent 55%);
  opacity: 0;
  transition: opacity .18s ease;
  z-index: -1;
}
.tile-card:hover { border-color: rgba(255,0,18,.72); transform: translateY(-3px); box-shadow: 0 18px 46px rgba(0,0,0,.35), 0 0 24px rgba(255,0,18,.18); }
.tile-card:hover::before { opacity: 1; }
.tile-card img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: contain;
  border-radius: 9px;
  background: rgba(0,0,0,.20);
}
.tile-card .tile-copy { display: grid; gap: 3px; padding: 0 2px 3px; text-align: center; }
.tile-card strong {
  font-family: var(--rp-display);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #fff;
  font-size: .86rem;
}
.no-results { grid-column: 1 / -1; color: var(--rp-muted); padding: 24px; text-align: center; }
.split-section {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr);
  gap: 22px;
  align-items: center;
}
.mini-tile-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mini-tile-grid .tile-card { padding: 7px; min-height: 126px; }
.mini-tile-grid .tile-card .tile-copy { display: none; }
.venue-actions { margin-top: 22px; }

.servers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.server-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 118px;
  gap: 14px;
  padding: 16px;
  align-items: stretch;
}
.server-icon-wrap {
  position: relative;
  align-self: start;
}
.server-icon-wrap img {
  width: 92px;
  height: 108px;
  object-fit: contain;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
}
.server-led {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rp-yellow);
  box-shadow: 0 0 12px rgba(255,193,75,.8);
}
.server-card[data-status="online"] .server-led { background: var(--rp-green); box-shadow: 0 0 14px rgba(32,224,113,.8); }
.server-card[data-status="offline"] .server-led,
.server-card[data-status="dead"] .server-led { background: var(--rp-hot); box-shadow: 0 0 14px rgba(255,0,18,.8); }
.server-main { display: grid; gap: 12px; }
.server-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.server-title-row h3 { font-size: .95rem; }
.server-title-row span {
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 8px;
  color: var(--rp-hot);
  font-family: var(--rp-display);
  font-size: .72rem;
}
.server-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: .84rem;
}
.server-meta div { min-width: 0; display: grid; gap: 3px; }
.server-meta strong { color: #fff; font-weight: 700; overflow-wrap: anywhere; }
.server-card[data-status="online"] .server-status { color: var(--rp-green); }
.server-card[data-status="offline"] .server-status,
.server-card[data-status="dead"] .server-status { color: var(--rp-hot); }
.server-actions { margin-top: 2px; }
.server-badge {
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255,255,255,.08);
  padding-left: 12px;
}
.server-badge img {
  width: 112px;
  max-height: 218px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0,0,0,.36);
}
.actions a,
.actions button {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
  font-family: var(--rp-display);
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.comms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.comm-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 14px;
  align-content: start;
}
.comm-card > img { width: 68px; height: 68px; object-fit: contain; border-radius: 12px; }
.comm-card h3 { margin-bottom: 8px; }
.comm-card p { margin: 0 0 14px; color: #c6bfbd; line-height: 1.6; }

.news-panel { min-height: 360px; }
.news-list {
  position: relative;
  z-index: 1;
  max-height: 420px;
  overflow: auto;
  padding: 18px;
  color: #d1cac8;
  line-height: 1.65;
}
.news-list h3 { margin: 0 0 8px; color: #fff; font-size: 1rem; }
.news-list p { margin: 0 0 12px; }
.news-list hr { border: 0; height: 1px; background: rgba(255,255,255,.1); margin: 16px 0; }
.news-list a { color: var(--rp-hot); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.news-bullet::before { content: "- "; color: var(--rp-hot); }
.inline-refresh {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  font-family: var(--rp-display);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.social-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.social-icons a {
  min-height: 112px;
  padding: 12px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.social-icons a:hover { border-color: rgba(255,0,18,.7); background: rgba(255,0,18,.08); }
.social-icons img { width: 68px; height: 68px; object-fit: contain; border-radius: 10px; }
.social-icons strong { font-family: var(--rp-display); text-transform: uppercase; }
.social-icons small { display: block; margin-top: 3px; }

.contact-form {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.contact-form label {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: var(--rp-muted);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-form .message-field { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  background: rgba(0,0,0,.42);
  color: #fff;
  padding: 10px 12px;
  outline: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255,0,18,.72);
  box-shadow: 0 0 0 3px rgba(255,0,18,.14);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button { min-height: 48px; border-radius: 10px; font-family: var(--rp-display); color: #fff; text-transform: uppercase; letter-spacing: .08em; }
#contactStatus { margin: 0; align-self: center; color: var(--rp-muted); }

.settings-panel {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 720;
  width: min(370px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid rgba(255,0,18,.42);
  border-radius: 14px;
  background: rgba(8,8,9,.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0,0,0,.65);
  display: none;
}
.settings-panel.open { display: block; }
.settings-panel h3 { margin-bottom: 16px; color: #fff; }
.settings-actions { display: grid; gap: 8px; }
.settings-actions button,
.settings-actions a {
  min-height: 40px;
  border-radius: 9px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-family: var(--rp-display);
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.settings-panel p { color: var(--rp-muted); font-size: .82rem; line-height: 1.5; }
.settings-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  color: #fff;
}
.context-menu {
  position: fixed;
  z-index: 800;
  min-width: 194px;
  display: grid;
  gap: 5px;
  padding: 7px;
  border: 1px solid rgba(255,0,18,.42);
  border-radius: 12px;
  background: rgba(7,7,8,.96);
  box-shadow: 0 18px 60px rgba(0,0,0,.58);
}
.context-menu button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  text-align: left;
  color: #ddd;
}

.yippie-egg {
  position: fixed;
  left: -280px;
  bottom: 8vh;
  z-index: 650;
  display: grid;
  justify-items: center;
  gap: 0;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.55));
}
.yippie-egg img { width: min(230px, 34vw); }
.yippie-egg span {
  margin-top: -18px;
  padding: 8px 12px;
  border: 1px solid rgba(255,0,18,.7);
  border-radius: 8px;
  background: rgba(0,0,0,.76);
  color: #fff;
  font-family: var(--rp-display);
  letter-spacing: .12em;
  box-shadow: 0 0 24px rgba(255,0,18,.34);
}
.yippie-egg.active { opacity: 1; animation: yippieRun 4.8s cubic-bezier(.18,.72,.2,1) both; }
@keyframes yippieRun {
  0% { transform: translateX(0) translateY(20px) rotate(-4deg); opacity: 0; }
  8% { opacity: 1; }
  48% { transform: translateX(calc(50vw + 160px)) translateY(-20px) rotate(3deg); }
  100% { transform: translateX(calc(100vw + 590px)) translateY(6px) rotate(-2deg); opacity: 0; }
}

.site-footer {
  width: min(var(--rp-max), calc(100% - 28px));
  margin: 0 auto 24px;
  padding: 18px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,0,18,.28);
  color: var(--rp-muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--rp-display); color: #fff; letter-spacing: .09em; }
.footer-brand img { width: 46px; height: 46px; object-fit: contain; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-actions button,
.footer-actions a {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: #d9d1cf;
  font-family: var(--rp-display);
  font-size: .76rem;
}
.site-footer small { color: var(--rp-dim); }

#globalMaintenanceOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(8px);
  padding: 20px;
}
#globalMaintenanceOverlay[hidden] { display: none; }
.maintenance-stack {
  width: min(780px, calc(100vw - 32px));
  display: grid;
  justify-items: center;
  gap: 14px;
}
.working-on-it-pop[hidden] { display: none; }
.working-on-it-pop {
  width: min(320px, 72vw);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255,0,18,.58);
  border-radius: 16px;
  background: rgba(5,0,0,.72);
  box-shadow: 0 18px 60px rgba(0,0,0,.74), 0 0 38px rgba(255,0,18,.24);
  animation: maintenance-bob 2.2s ease-in-out infinite;
}
.working-on-it-pop img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 10px;
  image-rendering: auto;
}
.working-on-it-pop span {
  color: #ff3636;
  font-family: var(--rp-display);
  font-size: .74rem;
  letter-spacing: .08em;
  text-shadow: 0 0 16px rgba(255,0,18,.8);
}
@keyframes maintenance-bob {
  0%, 100% { transform: translateY(0) rotate(-.4deg); }
  50% { transform: translateY(-8px) rotate(.4deg); }
}
.maintenance-card {
  width: 100%;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(255,0,18,.74);
  border-radius: 16px;
  background: rgba(12,12,14,.96);
  box-shadow: 0 24px 90px rgba(0,0,0,.72), 0 0 40px rgba(255,0,18,.2);
}
.maintenance-card p { color: #ddd; line-height: 1.6; }
.maintenance-card .brand-logo { width: 56px; height: 56px; }
.maintenance-card .actions { margin-top: 16px; }

@media (max-width: 1320px) {
  .topnav { display: none; }
  .brand { min-width: auto; }
  .command-search { margin-left: auto; }
  .hero-board,
  .split-section { grid-template-columns: 1fr; }
  .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .servers-grid { grid-template-columns: 1fr; }
  .launcher-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .social-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .account-chip { display: none; }
  .comms-grid { grid-template-columns: 1fr; }
  .launcher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mini-tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .server-card { grid-template-columns: 86px minmax(0, 1fr); }
  .server-badge { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 12px 0 0; }
  .server-badge img { width: min(240px, 100%); max-height: 140px; object-fit: contain; object-position: top; }
}
@media (max-width: 760px) {
  body { background-attachment: scroll; }
  .topbar-inner { width: calc(100% - 18px); min-height: 68px; gap: 9px; flex-wrap: wrap; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-copy strong { font-size: 1rem; }
  .brand-copy small { font-size: .6rem; letter-spacing: .28em; }
  .command-search { order: 5; flex: 1 1 100%; width: 100%; margin: 0 0 8px 0; }
  .top-actions { margin-left: auto; }
  .top-action { min-width: 72px; }
  .top-icon { width: 38px; height: 38px; }
  .top-icon img { width: 24px; height: 24px; }
  .site-shell { width: calc(100% - 18px); padding-top: 14px; }
  section { scroll-margin-top: 124px; }
  .hero-copy,
  .terminal-panel,
  .panel-red:not(.hero-copy):not(.terminal-panel) { padding: 16px; }
  .hero-copy { min-height: auto; }
  .hero-logo-line img { width: 70px; height: 70px; }
  h1 { font-size: clamp(2.7rem, 16vw, 4.4rem); }
  .terminal-grid,
  .terminal-grid-session,
  .status-strip,
  .contact-form { grid-template-columns: 1fr; }
  .launcher-grid,
  .game-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .mini-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-card { min-height: 142px; padding: 7px; }
  .tile-card strong { font-size: .76rem; }
  .tile-card small { display: none; }
  .server-card { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .server-icon-wrap img { width: 70px; height: 86px; }
  .server-meta { grid-template-columns: 1fr; }
  .panel-heading,
  .section-head { display: grid; }
  .hero-actions,
  .venue-actions,
  .actions { flex-direction: column; }
  .btn,
  .actions a,
  .actions button { width: 100%; }
  .social-icons { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 18px; }
}
@media (max-width: 430px) {
  .launcher-grid,
  .game-icons,
  .mini-tile-grid { grid-template-columns: 1fr; }
  .top-action-primary { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
body.reduce-motion *, body.reduce-motion *::before, body.reduce-motion *::after { animation: none !important; transition: none !important; }

/* v5 cleanup overrides */
.settings-panel { display: none !important; }
.context-menu {
  display: none;
  position: fixed;
  z-index: 800;
  min-width: 210px;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,0,18,.46);
  border-radius: 12px;
  background: rgba(7,7,8,.97);
  box-shadow: 0 18px 60px rgba(0,0,0,.58);
}
.context-menu.open { display: grid; }
.context-menu a,
.context-menu button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  color: #ddd;
  text-align: left;
  display: flex;
  align-items: center;
  font-family: var(--rp-display);
  font-size: .75rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.context-menu a:hover,
.context-menu button:hover { border-color: rgba(255,0,18,.72); background: rgba(255,0,18,.09); color: #fff; }
.launcher-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.game-icons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.social-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.server-card[id] { scroll-margin-top: 112px; }
@media (max-width: 1320px) {
  .launcher-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .game-icons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .launcher-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-icons { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .launcher-grid,
  .game-icons,
  .mini-tile-grid,
  .social-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
  .launcher-grid,
  .game-icons,
  .mini-tile-grid,
  .social-icons { grid-template-columns: 1fr; }
}

/* V4 locked cleanup */
.is-parked[hidden],
[hidden] { display: none !important; }

.search-panel {
  position: fixed;
  top: 72px;
  right: clamp(14px, 3vw, 42px);
  width: min(560px, calc(100vw - 28px));
  z-index: 1200;
  border: 1px solid rgba(255, 29, 37, .42);
  background: linear-gradient(180deg, rgba(15, 15, 18, .98), rgba(5, 0, 0, .98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255,255,255,.04) inset;
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.search-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 29, 37, .24);
}
.search-panel-head strong { color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.search-panel-head small { color: rgba(255,255,255,.55); text-align: right; }
.search-results {
  max-height: min(520px, calc(100vh - 140px));
  overflow: auto;
  padding: 8px;
}
.search-result {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
}
.search-result:hover,
.search-result:focus-visible {
  border-color: rgba(255, 29, 37, .48);
  background: rgba(255, 29, 37, .12);
  outline: none;
}
.search-result img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}
.search-result span { display: grid; gap: 3px; }
.search-result strong { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.search-result small { color: rgba(255,255,255,.58); font-size: 12px; }
.search-empty {
  margin: 0;
  padding: 18px;
  color: rgba(255,255,255,.62);
}

.section-head { position: relative; }
.collapse-toggle {
  margin-left: auto;
  align-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 29, 37, .35);
  border-radius: 9px;
  background: rgba(0,0,0,.38);
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .06em;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.collapse-toggle:hover,
.collapse-toggle:focus-visible {
  border-color: rgba(255, 29, 37, .72);
  background: rgba(255, 29, 37, .13);
  color: #fff;
  outline: none;
}
.collapse-toggle b {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 29, 37, .22);
  color: #fff;
}
.section-frame.is-collapsed > :not(.section-head) {
  display: none !important;
}
.generated-collapse-head {
  margin: 0;
  padding: 0;
  border: 0;
}

@media (max-width: 760px) {
  .search-panel { top: 116px; right: 10px; width: calc(100vw - 20px); }
  .search-panel-head { display: block; }
  .search-panel-head small { display: block; margin-top: 4px; text-align: left; }
  .collapse-toggle span { display: none; }
}


.comm-live {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 12px;
}
.comm-live div {
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 29, 37, .22);
  border-radius: 10px;
  background: rgba(0, 0, 0, .33);
}
.comm-live span {
  display: block;
  color: rgba(255,255,255,.54);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.comm-live strong {
  display: block;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.comm-badge {
  display: block;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 29, 37, .22);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0,0,0,.42);
}
.comm-badge img { display: block; width: 100%; max-height: 74px; object-fit: cover; }
.comm-card[data-status="online"] .comm-live strong:first-child,
.comm-card[data-status="online"] [data-ts3="status"],
.comm-card[data-status="online"] [data-chat="status"] { color: var(--rp-green); }
.comm-card[data-status="offline"] [data-ts3="status"],
.comm-card[data-status="offline"] [data-chat="status"] { color: var(--rp-hot); }
.generated-collapse-head {
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 29, 37, .22);
  border-radius: 16px;
  background: rgba(10, 0, 0, .44);
}
@media (max-width: 760px) {
  .comm-live { grid-template-columns: 1fr; }
}


/* V8 locked layout refinements */
.status-strip,
.game-icons,
.mini-tile-grid,
.social-icons,
.servers-grid,
.comms-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}
.status-strip > .stat-card,
.game-icons > .tile-card,
.mini-tile-grid > .tile-card,
.social-icons > a,
.servers-grid > .server-card,
.comms-grid > .comm-card {
  flex: 0 1 calc((100% - 42px) / 4);
  max-width: calc((100% - 42px) / 4);
}
.servers-grid > .server-card,
.comms-grid > .comm-card {
  min-width: 0;
}
.server-card {
  grid-template-columns: 74px minmax(0, 1fr) !important;
}
.server-badge {
  grid-column: 1 / -1;
  border-left: 0;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px 0 0;
}
.server-badge img {
  width: min(240px, 100%);
  max-height: 132px;
  object-fit: contain;
  object-position: top;
}
.server-icon-wrap img { width: 74px; height: 88px; }
.comms-grid > .comm-card { min-height: 100%; }
.comm-card { grid-template-columns: 54px minmax(0, 1fr) !important; }
.comm-card > img { width: 54px; height: 54px; }
.comm-badge { display: none !important; }
.chat-mini-window {
  margin: 12px 0 12px;
  border: 1px solid rgba(255,29,37,.28);
  border-radius: 12px;
  background: rgba(0,0,0,.38);
  overflow: hidden;
}
.chat-mini-title {
  min-height: 34px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(255,29,37,.08);
}
.chat-mini-title span,
.chat-mini-title strong {
  font-family: var(--rp-display);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.chat-mini-title span { color: rgba(255,255,255,.54); }
.chat-mini-title strong { color: #fff; }
.chat-mini-messages {
  display: grid;
  gap: 6px;
  max-height: 210px;
  overflow: auto;
  padding: 8px;
}
.chat-mini-messages article {
  padding: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}
.chat-mini-messages header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.chat-mini-messages strong { color: #fff; font-size: 12px; }
.chat-mini-messages time { color: rgba(255,255,255,.46); font-size: 10px; }
.chat-mini-messages p,
.chat-mini-empty { margin: 0; color: rgba(255,255,255,.72); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 1320px) {
  .status-strip > .stat-card,
  .game-icons > .tile-card,
  .mini-tile-grid > .tile-card,
  .social-icons > a,
  .servers-grid > .server-card,
  .comms-grid > .comm-card {
    flex-basis: calc((100% - 14px) / 2);
    max-width: calc((100% - 14px) / 2);
  }
}
@media (max-width: 760px) {
  .status-strip > .stat-card,
  .game-icons > .tile-card,
  .mini-tile-grid > .tile-card,
  .social-icons > a,
  .servers-grid > .server-card,
  .comms-grid > .comm-card {
    flex-basis: 100%;
    max-width: 100%;
  }
  .section-head { padding-right: 52px; }
  .collapse-toggle {
    position: absolute;
    top: 12px;
    right: 0;
    z-index: 4;
    margin-left: 0;
  }
}

/* V9 unified public layout + auth/search fixes */
.site-shell {
  width: min(1480px, calc(100% - 32px)) !important;
  margin-inline: auto !important;
  padding-top: 26px;
}
.unified-section {
  width: 100%;
  padding: clamp(18px, 2vw, 30px) !important;
}
.unified-section > .section-head {
  margin-bottom: 18px;
  padding-right: 0;
}
.unified-body {
  width: 100%;
  min-width: 0;
}
.home-grid,
.venue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  gap: 18px;
  align-items: stretch;
}
.venue-layout {
  grid-template-columns: minmax(280px, .55fr) minmax(0, 1.45fr);
}
.home-card {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--rp-radius-sm);
  background: rgba(0,0,0,.28);
  padding: clamp(16px, 1.6vw, 24px);
}
.hero-copy.home-card {
  min-height: 0;
  justify-content: center;
}
.terminal-panel.home-card {
  display: grid;
  align-content: start;
  gap: 16px;
}
.overview-section h1 {
  max-width: none;
  font-size: clamp(3rem, 5vw, 5.8rem);
}
.status-section .status-strip {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}
.status-section .status-strip > .stat-card {
  flex: 1 1 calc((100% - 28px) / 3) !important;
  max-width: none !important;
  min-width: 240px;
}
.game-icons,
.mini-tile-grid,
.social-icons,
.servers-grid,
.comms-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}
.game-icons > .tile-card,
.mini-tile-grid > .tile-card,
.social-icons > a,
.servers-grid > .server-card,
.comms-grid > .comm-card {
  flex: 0 1 calc((100% - 42px) / 4) !important;
  max-width: calc((100% - 42px) / 4) !important;
}
.servers-grid > .server-card,
.comms-grid > .comm-card {
  min-width: 0;
}
.contact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
}
.contact-form label,
.contact-form button,
#contactStatus {
  min-width: 0;
}
.contact-form .message-field { grid-column: 1 / -1; }
.contact-form button {
  justify-self: start;
  padding-inline: 24px;
}
#contactStatus {
  align-self: center;
}

.contact-form .file-upload-field {
  grid-column: auto;
}
.contact-form .file-upload-field input[type="file"] {
  padding: 10px;
  cursor: pointer;
}
.contact-form .file-upload-field small {
  color: rgba(255,255,255,.56);
  text-transform: none;
  letter-spacing: .02em;
  line-height: 1.35;
}
.search-panel {
  top: 76px;
  right: clamp(14px, 3vw, 42px);
}
.command-search:focus-within {
  border-color: rgba(255, 29, 37, .62);
  box-shadow: 0 0 0 3px rgba(255, 29, 37, .13);
}
.section-frame.is-collapsed > :not(.section-head) {
  display: none !important;
}
@media (max-width: 1320px) {
  .game-icons > .tile-card,
  .mini-tile-grid > .tile-card,
  .social-icons > a,
  .servers-grid > .server-card,
  .comms-grid > .comm-card {
    flex-basis: calc((100% - 14px) / 2) !important;
    max-width: calc((100% - 14px) / 2) !important;
  }
}
@media (max-width: 1040px) {
  .home-grid,
  .venue-layout {
    grid-template-columns: 1fr;
  }
  .status-section .status-strip > .stat-card {
    flex-basis: calc((100% - 14px) / 2) !important;
  }
}
@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1480px) !important;
  }
  .unified-section {
    padding: 16px !important;
  }
  .unified-section > .section-head {
    padding-right: 54px;
  }
  .status-section .status-strip > .stat-card,
  .game-icons > .tile-card,
  .mini-tile-grid > .tile-card,
  .social-icons > a,
  .servers-grid > .server-card,
  .comms-grid > .comm-card {
    flex-basis: 100% !important;
    max-width: 100% !important;
  }
  .contact-form {
    grid-template-columns: 1fr !important;
  }
  .contact-form .message-field {
    grid-column: auto;
  }
  .hero-actions,
  .venue-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .collapse-toggle {
    right: 0;
  }
  .search-panel {
    top: 116px;
    right: 10px;
    width: calc(100vw - 20px);
  }
}

/* V10 auth/session readout refinements */
.account-chip {
  position: relative;
  min-width: 190px;
  border-color: rgba(255,255,255,.14);
}
.account-chip::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  box-shadow: 0 0 12px rgba(255,255,255,.12);
}
.account-chip[data-session='active'] {
  border-color: rgba(46, 255, 111, .48);
  background: linear-gradient(180deg, rgba(46,255,111,.12), rgba(0,0,0,.5));
}
.account-chip[data-session='active']::after {
  background: #2eff6f;
  box-shadow: 0 0 14px rgba(46,255,111,.75);
}
.account-chip[data-session='checking'] {
  border-color: rgba(255,190,55,.52);
  background: linear-gradient(180deg, rgba(255,190,55,.10), rgba(0,0,0,.5));
}
.account-chip[data-session='checking']::after {
  background: #ffbe37;
  box-shadow: 0 0 14px rgba(255,190,55,.75);
}
.account-chip[data-session='guest'] {
  border-color: rgba(255,255,255,.10);
}
.account-chip[data-session='active'] small,
.account-chip[data-session='checking'] small {
  color: rgba(255,255,255,.82);
}
.account-chip[data-session='active'] strong {
  color: #fff;
  text-shadow: 0 0 14px rgba(46,255,111,.35);
}
@media (max-width: 1180px) {
  .account-chip { min-width: 160px; }
}

/* V11 session readout lock */
.account-chip {
  min-width: 228px;
  max-width: 300px;
  grid-template-columns: 34px minmax(0,1fr);
  padding-right: 12px;
}
.account-chip::after {
  content: attr(data-session);
  position: absolute;
  right: 9px;
  top: 5px;
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--rp-display);
  font-size: .52rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.account-chip[data-session='active']::after { color: var(--rp-green); background: transparent; box-shadow: none; }
.account-chip[data-session='checking']::after { color: var(--rp-yellow); background: transparent; box-shadow: none; }
.account-chip[data-session='guest']::after { color: var(--rp-muted); background: transparent; box-shadow: none; }
.account-chip strong,
.account-chip small { padding-right: 54px; }
.terminal-grid-session { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) {
  .account-chip { min-width: 190px; }
}
@media (max-width: 760px) {
  .terminal-grid-session { grid-template-columns: 1fr; }
}


/* V13 bug report/contact refinements */
.topnav a[data-bug-report-link],
.side-menu nav a[data-bug-report-link] {
  color: #fff;
  border-color: rgba(255, 0, 18, .42);
  background: linear-gradient(135deg, rgba(255,0,18,.18), rgba(255,255,255,.035));
}
.file-upload-field {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}
.file-upload-field input[type="file"] {
  padding: 12px;
  cursor: pointer;
}
.file-upload-field small {
  color: var(--rp-muted);
  letter-spacing: .03em;
  text-transform: none;
  line-height: 1.35;
}

/* V16 language switch + RedPointAI helper */
.topnav-button,
.side-ai-button,
.footer-ai-button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.topnav-button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.82);
  padding: 9px 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .74rem;
}
.topnav-button:hover,
.topnav-button:focus-visible {
  border-color: rgba(255,29,37,.58);
  color: #fff;
  background: rgba(255,29,37,.12);
  outline: none;
}
.lang-toggle {
  min-width: 44px;
  text-align: center;
  padding-inline: 12px !important;
}
.side-ai-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(255,29,37,.32);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,29,37,.14), rgba(255,255,255,.035));
  color: #fff;
  padding: 10px 12px;
  text-align: left;
}
.side-ai-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
}
.footer-ai-button {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.76);
  padding: 7px 10px;
}
.footer-ai-button:hover,
.footer-ai-button:focus-visible {
  color: #fff;
  border-color: rgba(255,29,37,.58);
  outline: none;
}
.redpoint-ai-fab {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 10010;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,29,37,.66);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,29,37,.95), rgba(65,0,0,.95));
  color: #fff;
  font-family: var(--rp-display);
  letter-spacing: .08em;
  box-shadow: 0 20px 60px rgba(0,0,0,.55), 0 0 26px rgba(255,29,37,.24);
  cursor: pointer;
}
.redpoint-ai-fab:hover,
.redpoint-ai-fab:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 22px 70px rgba(0,0,0,.64), 0 0 34px rgba(255,29,37,.42);
}
.redpoint-ai-dock {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px);
  z-index: 10009;
  width: min(430px, calc(100vw - 28px));
}
.redpoint-ai-dock[hidden] { display: none !important; }
.ai-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 24px 90px rgba(0,0,0,.72), 0 0 44px rgba(255,29,37,.16);
}
.ai-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.ai-head h2 { margin: 0; }
.ai-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ai-status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--rp-muted);
  font-size: .78rem;
}
.ai-messages {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(0,0,0,.28);
}
.ai-message {
  display: grid;
  gap: 4px;
  max-width: 92%;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.ai-message strong {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.72);
}
.ai-message p {
  margin: 0;
  color: rgba(255,255,255,.9);
  line-height: 1.45;
  font-size: .92rem;
  white-space: pre-wrap;
}
.ai-message.user {
  justify-self: end;
  border-color: rgba(255,29,37,.36);
  background: rgba(255,29,37,.13);
}
.ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.ai-form input {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(0,0,0,.34);
  color: #fff;
  padding: 12px;
}
.ai-form button,
.ai-quick button {
  border: 1px solid rgba(255,29,37,.42);
  border-radius: 12px;
  background: rgba(255,29,37,.14);
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
}
.ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-quick button {
  font-size: .78rem;
  color: rgba(255,255,255,.82);
}
@media (max-width: 760px) {
  .redpoint-ai-dock {
    right: 10px;
    bottom: 84px;
    width: calc(100vw - 20px);
  }
  .ai-form { grid-template-columns: 1fr; }
  .redpoint-ai-fab { right: 12px; bottom: 12px; }
}
.side-lang-button {
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.035);
}
.side-lang-button b {
  color: #fff;
  font-family: var(--rp-display);
  letter-spacing: .08em;
}
