/* GM v1: black and white Guild of Modders skin */
:root {
  --bg: #030303;
  --panel: rgba(15, 15, 15, .92);
  --panel2: rgba(255, 255, 255, .055);
  --text: #f4f4f4;
  --muted: #a7a7a7;
  --line: rgba(255, 255, 255, .14);
  --accent: #f6f6f6;
  --accent2: #d7d7d7;
  --radius: 8px;
  --shadow: 0 28px 80px rgba(0, 0, 0, .52);
}

html,
body {
  background: #030303 !important;
  color: var(--text);
}

body {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(0, 0, 0, 0) 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 96px) !important;
}

.container {
  width: min(1680px, calc(100% - 56px)) !important;
}

.site-header {
  background: rgba(2, 2, 2, .86) !important;
  border-bottom-color: rgba(255, 255, 255, .16) !important;
}

.nav-wrap {
  justify-content: flex-start !important;
}

.gm-brand {
  gap: 14px;
}

.brand-mark,
.footer-logo-word {
  font-family: 'Anton', Impact, sans-serif !important;
  color: #f7f7f7 !important;
  letter-spacing: 0 !important;
  text-shadow:
    0 1px 0 #777,
    0 14px 34px rgba(0, 0, 0, .85) !important;
}

.brand-mark {
  font-size: 38px !important;
  transform: skewX(-7deg);
}

.brand-sub {
  display: inline-block;
  color: #bdbdbd !important;
  font-size: 10px;
  letter-spacing: .22em;
  max-width: 110px;
}

.site-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 390px;
  min-width: 190px;
}

.site-search input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(0, 0, 0, .45);
  color: #f3f3f3;
  padding: 0 14px;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.site-search input::placeholder {
  color: #9f9f9f;
  text-transform: lowercase;
}

.site-search input:focus {
  background: rgba(10, 10, 10, .92);
  border-color: rgba(255, 255, 255, .42);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34);
}

.site-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(4, 4, 4, .96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .64);
}

.site-search-result {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  color: #f2f2f2;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-search-result:last-child {
  border-bottom: 0;
}

.site-search-result:hover,
.site-search-result:focus-visible {
  background: rgba(255, 255, 255, .08);
  outline: none;
}

.site-search-result strong {
  font-size: 13px;
  line-height: 1.18;
}

.site-search-result span {
  color: #a9a9a9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-search-result small,
.site-search-empty {
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.35;
}

.site-search-empty {
  padding: 12px;
}

.main-nav a,
.v28-footer-links a {
  color: #c9c9c9 !important;
}

.main-nav {
  margin-left: auto;
  gap: 28px !important;
}

.nav-actions {
  margin-left: 18px;
}

.main-nav a:hover,
.v28-footer-links a:hover {
  color: #fff !important;
}

.lang-switch {
  border-radius: 999px !important;
}

.lang-switch a {
  min-width: 82px;
  text-align: center;
  transition: color .18s ease, background .18s ease, text-shadow .18s ease;
}

.lang-switch a.lang-ru:hover,
.lang-switch a.lang-ru:focus-visible,
.welcome-btn.lang-ru:hover,
.welcome-btn.lang-ru:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .45) 0 33.33%, rgba(28, 87, 183, .45) 33.33% 66.66%, rgba(213, 43, 30, .45) 66.66% 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .82);
  border-color: rgba(255, 255, 255, .66) !important;
}

.lang-switch a.lang-en:hover,
.lang-switch a.lang-en:focus-visible,
.welcome-btn.lang-en:hover,
.welcome-btn.lang-en:focus-visible {
  background:
    linear-gradient(35deg, transparent 0 42%, rgba(255, 255, 255, .45) 42% 46%, rgba(200, 16, 46, .45) 46% 54%, rgba(255, 255, 255, .45) 54% 58%, transparent 58%),
    linear-gradient(145deg, transparent 0 42%, rgba(255, 255, 255, .45) 42% 46%, rgba(200, 16, 46, .45) 46% 54%, rgba(255, 255, 255, .45) 54% 58%, transparent 58%),
    linear-gradient(180deg, rgba(1, 33, 105, .45) 0 38%, rgba(255, 255, 255, .45) 38% 44%, rgba(200, 16, 46, .45) 44% 56%, rgba(255, 255, 255, .45) 56% 62%, rgba(1, 33, 105, .45) 62% 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .82);
  border-color: rgba(255, 255, 255, .66) !important;
}

.lang-switch a.active,
.btn-accent {
  background: #f4f4f4 !important;
  color: #050505 !important;
  border-color: #f4f4f4 !important;
  font-weight: 900;
}

.lang-switch a.lang-ru.active:hover,
.lang-switch a.lang-ru.active:focus-visible {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .45) 0 33.33%, rgba(28, 87, 183, .45) 33.33% 66.66%, rgba(213, 43, 30, .45) 66.66% 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .82);
}

.lang-switch a.lang-en.active:hover,
.lang-switch a.lang-en.active:focus-visible {
  background:
    linear-gradient(35deg, transparent 0 42%, rgba(255, 255, 255, .45) 42% 46%, rgba(200, 16, 46, .45) 46% 54%, rgba(255, 255, 255, .45) 54% 58%, transparent 58%),
    linear-gradient(145deg, transparent 0 42%, rgba(255, 255, 255, .45) 42% 46%, rgba(200, 16, 46, .45) 46% 54%, rgba(255, 255, 255, .45) 54% 58%, transparent 58%),
    linear-gradient(180deg, rgba(1, 33, 105, .45) 0 38%, rgba(255, 255, 255, .45) 38% 44%, rgba(200, 16, 46, .45) 44% 56%, rgba(255, 255, 255, .45) 56% 62%, rgba(1, 33, 105, .45) 62% 100%) !important;
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .82);
}

.btn,
.menu-btn {
  border-radius: 8px !important;
}

.btn-primary,
.btn-ghost,
.btn-muted {
  background: rgba(255, 255, 255, .055) !important;
  border-color: rgba(255, 255, 255, .16) !important;
  color: #f1f1f1 !important;
}

.gm-home {
  background: #030303;
}

.gm-hero {
  min-height: 690px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.gm-hero-bg {
  filter: grayscale(1) contrast(1.18) brightness(.7);
}

.gm-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 35%, rgba(255, 255, 255, .18), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, .72) 38%, rgba(0, 0, 0, .25) 64%, rgba(0, 0, 0, .78) 100%),
    linear-gradient(180deg, transparent 52%, #030303 100%);
}

.gm-hero-inner {
  min-height: 690px !important;
  display: block !important;
  padding-top: 124px;
}

.gm-hero-copy {
  padding-top: 0 !important;
  max-width: 640px !important;
}

.eyebrow {
  color: #cfcfcf !important;
  letter-spacing: .22em !important;
}

.gm-main-logo {
  width: min(100%, 330px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .72));
}

.gm-welcome-logo {
  width: min(44vw, 360px);
  margin: 0 auto -8px;
}

.gm-hero-logo {
  width: min(32vw, 320px);
  min-width: 235px;
  margin: 10px 0 4px;
}

.gm-hero-copy p {
  max-width: 590px;
  color: #d0d0d0;
  font-size: 17px;
}

.gm-hero-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 26px;
}

.gm-hero-tabs a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 112px;
  min-height: 58px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 8px;
  color: #efefef;
  font-weight: 800;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .36);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gm-hero-tabs a::before,
.gm-hero-tabs a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}

.gm-hero-tabs a::before {
  background: var(--tab-bg) center / cover;
  filter: grayscale(1) brightness(.38) contrast(1.28);
  transform: scale(1.05);
  transition: filter .18s ease, transform .18s ease;
}

.gm-hero-tabs a::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .42)),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, .16), transparent 34%);
}

.gm-hero-tabs a:hover,
.gm-hero-tabs a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .36);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .46);
  outline: none;
}

.gm-hero-tabs a:hover::before,
.gm-hero-tabs a:focus-visible::before {
  filter: grayscale(.82) brightness(.52) contrast(1.34);
  transform: scale(1.1);
}

.gm-hero-tabs a[data-tab-bg="marketplace"] {
  --tab-bg: url('/uploads/bg-public-mods.png');
}

.gm-hero-tabs a[data-tab-bg="news"] {
  --tab-bg: url('/uploads/v28-card-news.png');
}

.gm-hero-tabs a[data-tab-bg="faq"] {
  --tab-bg: url('/uploads/bg-private-mods.png');
}

.gm-logo-run-link {
  position: fixed;
  left: 0;
  top: 0;
  width: 76px;
  height: 76px;
  display: block;
  border-radius: 50%;
  z-index: 35;
  will-change: transform;
  cursor: crosshair;
  transition: filter .15s ease, opacity .15s ease;
  transform: translate(0, 0);
}

.gm-logo-site-runner {
  opacity: .94;
  touch-action: none;
}

@media (pointer: coarse) {
  .gm-logo-site-runner {
    display: none;
  }
}

.gm-logo-run-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

.gm-logo-runner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    grayscale(1)
    contrast(1.16)
    drop-shadow(0 18px 24px rgba(0, 0, 0, .82));
  transform: rotate(-4deg);
  pointer-events: none;
}

.gm-market {
  margin-top: -38px !important;
  padding: 28px 0 54px;
}

.page-bg {
  position: relative;
  min-height: calc(100vh - 56px);
}

.page-bg::before,
.page-bg::after {
  content: '';
  position: fixed;
  left: 50%;
  top: 56px;
  bottom: 0;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
}

.page-bg::before {
  z-index: 0;
  background: var(--page-bg) center top / cover no-repeat;
  filter: grayscale(1) brightness(.28) contrast(1.22);
  opacity: .78;
}

.page-bg::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .52) 45%, rgba(0, 0, 0, .88)),
    linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .78) 66%, #030303 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 96px);
}

.page-bg > * {
  position: relative;
  z-index: 3;
}

.page-bg-marketplace {
  --page-bg: url('/uploads/bg-public-mods.png');
}

.page-bg-news {
  --page-bg: url('/uploads/v28-card-news.png');
}

.page-bg-faq {
  --page-bg: url('/uploads/bg-private-mods.png');
}

.page-bg-terms {
  --page-bg: url('/uploads/bg-news.png');
}

.page-bg-contacts {
  --page-bg: url('/uploads/bg-public-mods.png');
}

.tab-page-hero {
  --tab-page-hero-bg: url('/uploads/bg-public-mods.png');
  position: relative;
  z-index: 2;
  min-height: 720px;
  display: flex;
  align-items: center;
  margin: -34px 0 -84px;
  padding: 132px 0 178px;
  overflow: hidden;
}

.tab-page-hero-copy {
  position: relative;
  z-index: 2;
  width: min(620px, 48vw);
}

.tab-page-hero-copy h1 {
  margin: 14px 0 18px;
  font-size: clamp(48px, 5.4vw, 84px);
  line-height: .92;
  letter-spacing: 0;
}

.tab-page-hero-copy p {
  max-width: 690px;
  color: #d0d5dd;
  font-size: 18px;
  line-height: 1.48;
}

.tab-page-hero-bg {
  position: absolute;
  top: -34px;
  right: calc((100% - 100vw) / 2);
  bottom: 0;
  width: min(82vw, 1700px);
  z-index: 0;
  overflow: hidden;
  background: var(--tab-page-hero-bg) center center / cover no-repeat;
  filter: grayscale(1) brightness(.64) contrast(1.24);
  pointer-events: none;
}

.tab-page-hero-bg::before,
.tab-page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
}

.tab-page-hero-bg::before {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 255, 255, .18), transparent 24%),
    linear-gradient(90deg, #030303 0%, rgba(3, 3, 3, .72) 18%, rgba(3, 3, 3, .18) 54%, rgba(3, 3, 3, .64) 100%),
    linear-gradient(180deg, rgba(3, 3, 3, .04), rgba(3, 3, 3, .18) 48%, #030303 100%);
}

.tab-page-hero-bg::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 36%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 96px);
}

.tab-page-hero-marketplace {
  --tab-page-hero-bg: url('/uploads/bg-public-mods.png');
}

.tab-page-hero-news {
  --tab-page-hero-bg: url('/uploads/bg-news.png');
}

.tab-page-hero-faq {
  --tab-page-hero-bg: url('/uploads/bg-private-mods.png');
}

.tab-page-hero-terms {
  --tab-page-hero-bg: url('/uploads/bg-news.png');
}

.tab-page-hero-contacts {
  --tab-page-hero-bg: url('/uploads/bg-public-mods.png');
}

.modder-strip,
.marketplace-layout,
.news-feed-page,
.faq-list,
.news-grid-page,
.static-content,
.bug-form {
  position: relative;
  z-index: 4;
}

.gm-section-head {
  margin: 0 0 18px !important;
}

.gm-home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.cards-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
}

.gm-home-card {
  min-height: 238px !important;
  border-radius: 8px !important;
  filter: grayscale(.92) brightness(.84) contrast(1.12);
  border-color: rgba(255, 255, 255, .15) !important;
  background-blend-mode: normal;
}

.gm-home-card::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .18) 32%, rgba(0, 0, 0, .86) 100%),
    radial-gradient(circle at 82% 8%, rgba(255, 255, 255, .12), transparent 32%) !important;
}

.gm-home-card:hover {
  filter: grayscale(.74) brightness(.96) contrast(1.16);
  border-color: rgba(255, 255, 255, .36) !important;
}

.marketplace-page {
  padding-top: 42px;
}

.modder-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 18px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.modder-pill {
  --modder-color: #8b949e;
  position: relative;
  min-width: 132px;
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 12px 38px 12px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-color: color-mix(in srgb, var(--modder-color) 34%, rgba(255, 255, 255, .14));
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--modder-color) 16%, transparent), rgba(255, 255, 255, .035));
  color: #f3f3f3;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--modder-color) 58%, transparent);
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.modder-pill:hover,
.modder-pill.active {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--modder-color) 26%, transparent), rgba(255, 255, 255, .07));
  border-color: color-mix(in srgb, var(--modder-color) 72%, rgba(255, 255, 255, .34));
  box-shadow:
    inset 0 -3px 0 var(--modder-color),
    0 12px 28px color-mix(in srgb, var(--modder-color) 14%, transparent);
}

.modder-pill:hover {
  transform: translateY(-1px);
}

.modder-pill strong {
  font-size: 15px;
  line-height: 1.08;
}

.modder-pill small {
  color: #a9a9a9;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.modder-pill span {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #9097a2;
  font-size: 12px;
}

.selected-modder-actions {
  --modder-color: #8b949e;
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid color-mix(in srgb, var(--modder-color) 48%, rgba(255, 255, 255, .14));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--modder-color) 18%, transparent), rgba(255, 255, 255, .04)),
    rgba(0, 0, 0, .36);
}

.selected-modder-actions span {
  color: #fff;
  font-weight: 900;
}

.marketplace-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.market-sidebar {
  position: sticky;
  top: 92px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 64px);
  overflow: hidden;
}

.market-sidebar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #f0f0f0;
  font-weight: 900;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
}

.market-sidebar-head a {
  color: #aeb6c2;
  font-size: 12px;
}

.market-category-list {
  display: grid;
}

.market-category-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  color: #bfc5ce;
  line-height: 1.2;
  border-bottom: 1px solid rgba(255, 255, 255, .035);
}

.market-category-list a:hover,
.market-category-list a.active {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.market-category-list em {
  color: #838c98;
  font-style: normal;
}

.market-results {
  min-width: 0;
}

.market-filters {
  grid-template-columns: minmax(0, 1fr) auto !important;
  margin-top: 0 !important;
}

.section-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
  color: #aeb8c7;
  font-size: 13px;
  font-weight: 800;
}

.news-grid-page {
  position: relative;
  z-index: 6;
}

.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card-grid .post-card {
  position: relative;
  z-index: 1;
}

.post-card > a {
  display: block;
  width: 100%;
  background: #0b0b0b;
}

.post-card .card-cover,
.post-card .card-cover.small {
  width: 100%;
  max-width: none;
  height: 190px;
  object-fit: cover;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 0;
}

.pagination-link,
.pagination-gap {
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: #d8e0eb;
  font-weight: 900;
}

.pagination-link:hover,
.pagination-link.active {
  border-color: rgba(56, 189, 248, .62);
  background: rgba(56, 189, 248, .14);
  color: #fff;
}

.pagination-gap {
  color: #6f7885;
  background: transparent;
}

.home-v28-icon {
  border-radius: 8px !important;
  background: rgba(0, 0, 0, .66) !important;
}

.panel,
.card,
.discord-banner,
.mini-list a,
.mini-list > div,
.table-wrap {
  background: var(--panel) !important;
  border-color: rgba(255, 255, 255, .14) !important;
  border-radius: 8px !important;
}

.site-header,
.site-footer,
.site-chat {
  position: relative;
  z-index: 20;
}

.card-cover,
.article-cover,
.mod-hero > img {
  filter: none !important;
}

.badge.success,
.badge.warning,
.notice.warning,
.notice.danger {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .20) !important;
  color: #f1f1f1 !important;
}

.badge-access-public {
  background: rgba(56, 189, 248, .14) !important;
  border-color: rgba(56, 189, 248, .62) !important;
  color: #c9f2ff !important;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .12), 0 0 18px rgba(56, 189, 248, .10);
}

.badge-access-private {
  background: rgba(248, 81, 73, .14) !important;
  border-color: rgba(248, 81, 73, .62) !important;
  color: #ffd4d1 !important;
  box-shadow: inset 0 0 0 1px rgba(252, 165, 165, .10), 0 0 18px rgba(248, 81, 73, .10);
}

.badge-access-private-available {
  background: rgba(74, 222, 128, .15) !important;
  border-color: rgba(74, 222, 128, .64) !important;
  color: #d7ffe2 !important;
  box-shadow: inset 0 0 0 1px rgba(187, 247, 208, .12), 0 0 18px rgba(74, 222, 128, .12);
}

.badge-modder {
  --modder-color: #8b949e;
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .20) !important;
  background: color-mix(in srgb, var(--modder-color) 22%, rgba(255, 255, 255, .045)) !important;
  border-color: color-mix(in srgb, var(--modder-color) 70%, rgba(255, 255, 255, .18)) !important;
  color: #fff !important;
  box-shadow: inset 0 -2px 0 var(--modder-color);
}

.badge-status {
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .22) !important;
  color: #f3f6fb !important;
}

.status-published {
  background: rgba(34, 197, 94, .13) !important;
  border-color: rgba(34, 197, 94, .50) !important;
  color: #d9ffe4 !important;
}

.status-private {
  background: rgba(248, 81, 73, .13) !important;
  border-color: rgba(248, 81, 73, .52) !important;
  color: #ffd7d4 !important;
}

.status-in-development,
.status-updating {
  background: rgba(56, 189, 248, .13) !important;
  border-color: rgba(56, 189, 248, .52) !important;
  color: #d3f5ff !important;
}

.status-archived,
.status-draft,
.status-hidden {
  background: rgba(148, 163, 184, .12) !important;
  border-color: rgba(148, 163, 184, .42) !important;
  color: #d9dee7 !important;
}

.market-filters {
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px) auto !important;
}

.market-filters select {
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #0b1018;
  color: #f4f6fb;
  padding: 0 14px;
  font-weight: 800;
}

.version-panel {
  margin-top: 20px;
}

.version-list {
  display: grid;
  gap: 10px;
}

.version-item {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(80px, auto) 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.version-item:last-child {
  border-bottom: 0;
}

.version-item strong {
  color: #fff;
}

.version-item span {
  color: #9aa4b2;
}

.version-item p {
  margin: 0;
  color: #d7dce6;
}

.favorite-grid {
  display: grid;
  gap: 12px;
}

.favorite-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.favorite-card img {
  width: 92px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.favorite-card strong,
.favorite-card span {
  display: block;
}

.favorite-card span {
  margin-top: 4px;
  color: #9ca6b4;
  font-size: 13px;
}

.public-profile-page {
  padding-top: 86px;
}

.public-hero {
  --modder-color: #8b949e;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  padding: 36px;
  margin-bottom: 28px;
  border: 1px solid color-mix(in srgb, var(--modder-color) 40%, rgba(255, 255, 255, .14));
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--modder-color) 24%, transparent), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
}

.modder-page-hero {
  overflow: hidden;
}

.modder-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--modder-cover, url('/uploads/bg-public-mods.png')) center center / cover no-repeat;
  filter: brightness(.36) contrast(1.12);
  opacity: .92;
}

.modder-page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .38) 58%, rgba(0, 0, 0, .72)),
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--modder-color) 28%, transparent), transparent 34%);
}

.modder-page-avatar {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--modder-color) 60%, rgba(255, 255, 255, .22));
  box-shadow: 0 18px 36px rgba(0, 0, 0, .48);
}

.public-hero h1 {
  margin: 12px 0;
  font-size: clamp(52px, 6vw, 92px);
  line-height: .88;
  letter-spacing: 0;
}

.public-hero p {
  max-width: 660px;
  color: #cdd5e0;
}

.public-hero-card {
  min-width: 170px;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--modder-color) 58%, rgba(255, 255, 255, .16));
  border-radius: 8px;
  background: rgba(0, 0, 0, .42);
  text-align: right;
}

.public-hero-card strong {
  display: block;
  color: #fff;
  font-size: 52px;
  line-height: 1;
}

.public-hero-card span,
.user-chip em {
  color: #9ea8b6;
  font-style: normal;
}

.user-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
}

.user-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.modder-strip.compact {
  margin: 0;
  padding: 0;
}

.modder-posts-panel {
  margin: 22px 0;
}

.modder-post-list {
  display: grid;
  gap: 14px;
}

.modder-post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.modder-post-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.modder-post-card h3 {
  margin: 8px 0;
}

.modder-post-card p {
  margin: 0;
  color: #cbd3df;
}

.admin-faq-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-faq-item {
  display: grid;
  gap: 12px;
}

.admin-faq-item form,
.admin-faq-list form,
.admin-faq-list fieldset {
  min-width: 0;
}

.admin-faq-list input,
.admin-faq-list select,
.admin-faq-list textarea,
.admin-faq-item input,
.admin-faq-item select,
.admin-faq-item textarea {
  width: 100%;
  min-width: 0;
  background: #0d121a;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #f5f5f5;
  padding: 12px 13px;
  outline: none;
}

.admin-faq-list textarea,
.admin-faq-item textarea {
  resize: vertical;
}

.admin-faq-list .form-grid,
.admin-faq-item .form-grid {
  align-items: start;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.translate-mini {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 7px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.admin-delete-form {
  margin-top: -2px;
}

.ticket-page {
  padding-bottom: 90px;
}

.ticket-tabs {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.ticket-tab {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: #d8e0eb;
  font-weight: 900;
}

.ticket-tab:hover,
.ticket-tab.active {
  border-color: rgba(56, 189, 248, .62);
  background: rgba(56, 189, 248, .14);
  color: #fff;
}

.ticket-list {
  position: relative;
  z-index: 6;
  display: grid;
  gap: 14px;
}

.ticket-list-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  transition: transform .18s ease, border-color .18s ease;
}

.ticket-list-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, .48) !important;
}

.ticket-list-item h2,
.ticket-detail-head h1 {
  margin: 12px 0 8px;
}

.ticket-list-item p,
.ticket-detail-head p,
.ticket-template p {
  color: #cbd3df;
}

.ticket-form,
.ticket-detail-head,
.ticket-template,
.ticket-thread {
  position: relative;
  z-index: 6;
}

.ticket-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-top: 52px;
}

.ticket-thread {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.ticket-template {
  margin-top: 18px;
}

.ticket-message {
  max-width: min(780px, 100%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.ticket-message.is-admin {
  margin-left: auto;
  border-color: rgba(56, 189, 248, .32);
  background: rgba(56, 189, 248, .08);
}

.ticket-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-size: 13px;
}

.ticket-message-meta span {
  color: #8792a2;
}

.ticket-message p {
  margin: 10px 0 0;
  color: #d8e0eb;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ticket-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ticket-reply-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.ticket-reply-form textarea,
.ticket-reply-form input,
.ticket-reply-form select,
.ticket-admin-card select {
  width: 100%;
  min-width: 0;
  background: #0d121a;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #f5f5f5;
  padding: 12px 13px;
  outline: none;
}

.site-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  font-family: Montserrat, system-ui, sans-serif;
}

.site-chat-panel {
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 29, 42, .98), rgba(8, 10, 14, .98)),
    #0a0d12;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .64);
}

.site-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, .20), rgba(167, 139, 250, .13)),
    rgba(255, 255, 255, .04);
}

.site-chat-head strong,
.site-chat-head span {
  display: block;
}

.site-chat-head strong {
  color: #fff;
}

.site-chat-head span {
  margin-top: 2px;
  color: #b7c2d0;
  font-size: 12px;
}

.site-chat-head button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(0, 0, 0, .26);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.site-chat-messages {
  height: 330px;
  overflow-y: auto;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.site-chat-message {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
}

.site-chat-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, .16);
  border: 1px solid rgba(56, 189, 248, .30);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

a.site-chat-avatar:hover,
.site-chat-meta a:hover {
  border-color: rgba(255, 255, 255, .58);
}

.site-chat-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.site-chat-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  font-size: 13px;
}

.site-chat-meta span {
  color: #7f8997;
  font-size: 12px;
}

.site-chat-meta a,
.site-chat-meta strong {
  color: #fff;
  font-weight: 900;
}

.site-chat-delete {
  border: 0;
  background: rgba(248, 81, 73, .14);
  color: #ffd8d5;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.site-chat-delete:hover {
  background: rgba(248, 81, 73, .24);
}

.site-chat-message p {
  margin: 3px 0 0;
  color: #d6dde8;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.site-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .10);
}

.site-chat-form input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #0a1019;
  color: #fff;
  padding: 0 12px;
}

.site-chat-login,
.site-chat-empty {
  padding: 18px;
  color: #cad3df;
  text-align: center;
}

.site-chat-bubble {
  display: none;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(125, 211, 252, .46);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, .24), transparent 34%),
    linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 14px 34px rgba(14, 165, 233, .24), 0 18px 50px rgba(0, 0, 0, .60);
  cursor: pointer;
}

.site-chat-bubble span {
  position: relative;
  display: block;
  width: 27px;
  height: 19px;
  margin: auto;
  border-radius: 999px;
  background: #fff;
}

.site-chat-bubble span::after {
  content: '';
  position: absolute;
  right: 4px;
  bottom: -5px;
  border-width: 6px 0 0 8px;
  border-style: solid;
  border-color: transparent transparent transparent #fff;
}

.site-chat.is-minimized .site-chat-panel {
  display: none;
}

.site-chat.is-minimized .site-chat-bubble {
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .market-filters {
    grid-template-columns: 1fr !important;
  }

  .public-hero {
    display: grid;
    padding: 24px;
  }

  .public-hero-card {
    text-align: left;
  }

  .modder-post-card {
    grid-template-columns: 1fr;
  }

  .version-item,
  .favorite-card {
    grid-template-columns: 1fr;
  }

  .favorite-card img {
    width: 100%;
  }

  .site-chat {
    right: 14px;
    bottom: 14px;
  }
}

.notice.success {
  border-color: rgba(74, 222, 128, .42) !important;
  background: rgba(74, 222, 128, .10) !important;
  color: #d7ffe2 !important;
}

.discord-banner {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)),
    #070707 !important;
}

.gm-auth-card {
  width: min(560px, 100%);
}

.auth-lead {
  color: #c9c9c9;
  margin-top: -4px;
}

.discord-login-btn {
  width: 100%;
  margin: 14px 0;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}

.auth-switch a {
  display: grid;
  place-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: #d7d7d7;
  font-weight: 900;
}

.auth-switch a.active {
  background: #f4f4f4;
  color: #050505;
  border-color: #f4f4f4;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  color: #8f8f8f;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: rgba(255, 255, 255, .14);
}

.auth-rules {
  font-size: 13px;
  margin: 0;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.translate-mini {
  min-width: 72px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: #f2f2f2;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.translate-mini:hover,
.translate-mini:focus-visible {
  background: rgba(255, 255, 255, .14);
}

.translate-mini:disabled {
  cursor: wait;
  opacity: .62;
}

.media-manager {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  gap: 18px;
}

.media-size-note {
  margin: 0;
}

.cover-manager,
.gallery-manager {
  display: grid;
  gap: 14px;
}

.media-preview {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.media-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: #080808;
}

.media-preview code {
  color: #aeb6c2;
  white-space: normal;
  word-break: break-word;
}

.gallery-manager h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.gallery-edit-list {
  display: grid;
  gap: 12px;
}

.gallery-edit-item {
  display: grid;
  grid-template-columns: 180px auto minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  cursor: grab;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, opacity .18s ease;
}

.gallery-edit-item:hover {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .055);
}

.gallery-edit-item.is-dragging {
  opacity: .55;
  transform: scale(.99);
  border-color: rgba(116, 185, 255, .72);
}

.gallery-edit-item img {
  width: 180px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
}

.drag-handle {
  display: inline-grid;
  place-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #dfe8f4;
  background:
    linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px) 10px 50% / 6px 18px no-repeat,
    rgba(255, 255, 255, .045);
  font-weight: 900;
  user-select: none;
}

.discord-top-link {
  color: #d8ddff !important;
}

.discord-top-link:hover {
  color: #fff !important;
  text-shadow: 0 0 18px rgba(88, 101, 242, .62);
}

.discord-login-btn.disabled {
  pointer-events: none;
  opacity: .64;
}

.discord-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #050505;
  color: #fff;
  font-weight: 900;
}

.discord-header-btn {
  min-height: 40px;
  padding: 8px 13px !important;
  font-weight: 900;
}

.discord-header-btn .discord-icon {
  width: 22px;
  height: 22px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
}

.legacy-auth {
  margin-top: 18px;
  color: #c7c7c7;
}

.legacy-auth summary {
  cursor: pointer;
  font-weight: 800;
}

.legacy-auth .stack-form {
  margin-top: 14px;
}

.discord-profile-preview,
.account-title,
.account-chip {
  display: flex;
  align-items: center;
  gap: 14px;
}

.discord-profile-preview {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.discord-profile-preview img,
.account-avatar,
.account-chip img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .24);
}

.discord-profile-preview span {
  display: block;
  color: #a8a8a8;
}

.avatar-choice-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.avatar-choice {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.avatar-choice input {
  width: auto !important;
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  background: #111;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.account-avatar span {
  font-weight: 900;
  font-size: 28px;
}

.account-meta-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #d7dce5;
}

.account-meta-line span:not(.role-badge) {
  color: #c8d2df;
}

.account-bio {
  max-width: 760px;
  margin: 14px 0 0;
  color: #c5cedb;
  white-space: pre-wrap;
}

.profile-edit-panel {
  margin-bottom: 18px;
}

.profile-edit-form {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(320px, 1fr);
  gap: 14px;
  align-items: start;
}

.profile-edit-form label {
  display: grid;
  gap: 7px;
  color: #d3dbe7;
  font-weight: 800;
}

.profile-edit-form input,
.profile-edit-form textarea {
  width: 100%;
  background: #0d121a;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #f2f2f2;
  padding: 12px 13px;
  outline: none;
}

.profile-edit-form input:focus,
.profile-edit-form textarea:focus {
  border-color: rgba(255, 255, 255, .34);
}

.profile-avatar-edit {
  display: grid;
  gap: 12px;
}

.profile-edit-form .card-actions {
  grid-column: 1 / -1;
  margin-top: 0;
}

.account-chip {
  max-width: 220px;
}

.account-chip img {
  width: 26px;
  height: 26px;
}

.account-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  color: #f4f4f4;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 20px;
  color: #cfcfcf;
  max-width: 820px;
}

.collapsible-gallery {
  padding: 0 !important;
}

.collapsible-gallery summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #f4f4f4;
}

.collapsible-gallery summary span {
  color: #aab4c0;
  font-size: 14px;
}

.collapsible-gallery .gallery-grid {
  padding: 0 24px 24px;
}

.modder-permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.modder-permission-card {
  display: grid;
  gap: 14px;
}

.modder-color-control {
  display: grid !important;
  grid-template-columns: auto 58px minmax(130px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.modder-color-control span {
  color: #d7dce5;
  font-weight: 900;
}

.modder-color-control input[type="color"] {
  width: 58px;
  height: 42px;
  padding: 3px;
  border-radius: 8px;
  cursor: pointer;
}

.modder-color-control input[type="text"] {
  min-width: 0;
  height: 42px;
  text-transform: uppercase;
}

.modder-permission-head h2 {
  margin: 4px 0 0;
  font-size: 26px;
}

.editor-checks {
  display: grid;
  gap: 8px;
}

.editor-checks label {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.editor-checks input {
  width: auto !important;
  grid-row: 1 / 3;
}

.editor-checks small {
  color: #929aa6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.admin-dashboard-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: .95;
}

.admin-dashboard-hero p {
  margin: 0;
  max-width: 720px;
  color: #b9c3d1;
}

.admin-role-card,
.admin-metric,
.admin-action {
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.admin-role-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.admin-role-card span,
.admin-metric span,
.admin-action span {
  color: #9da8b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-role-card strong {
  font-size: 28px;
}

.admin-overview-grid,
.admin-action-grid {
  display: grid;
  gap: 14px;
}

.admin-overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-metric {
  min-height: 134px;
  padding: 20px;
  display: grid;
  align-content: space-between;
  overflow: hidden;
  position: relative;
}

.admin-metric::after,
.admin-action::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--metric-color, #fff);
  opacity: .86;
}

.admin-metric strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 38px;
  line-height: 1;
}

.admin-metric small,
.admin-action small,
.user-role-panel p {
  color: #aeb8c7;
  line-height: 1.45;
}

.metric-green { --metric-color: #4ade80; background: linear-gradient(135deg, rgba(74, 222, 128, .14), rgba(255,255,255,.035)); }
.metric-blue { --metric-color: #60a5fa; background: linear-gradient(135deg, rgba(96, 165, 250, .14), rgba(255,255,255,.035)); }
.metric-purple { --metric-color: #c084fc; background: linear-gradient(135deg, rgba(192, 132, 252, .14), rgba(255,255,255,.035)); }
.metric-amber { --metric-color: #fbbf24; background: linear-gradient(135deg, rgba(251, 191, 36, .14), rgba(255,255,255,.035)); }
.metric-cyan { --metric-color: #22d3ee; background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(255,255,255,.035)); }
.metric-red { --metric-color: #fb7185; background: linear-gradient(135deg, rgba(251, 113, 133, .14), rgba(255,255,255,.035)); }

.admin-action {
  --metric-color: rgba(255,255,255,.5);
  min-height: 160px;
  padding: 20px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.admin-action:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .07);
}

.admin-action strong {
  display: block;
  font-size: 24px;
}

.action-mods { --metric-color: #60a5fa; }
.action-modders { --metric-color: #4ade80; }
.action-posts { --metric-color: #fbbf24; }
.action-users { --metric-color: #c084fc; }
.action-reviews { --metric-color: #fb7185; }
.action-settings { --metric-color: #94a3b8; }
.action-bugs { --metric-color: #ef4444; }

.admin-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
  margin: 0 0 18px;
}

.admin-filter-bar input {
  width: 100%;
  background: #0d121a;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  color: #f2f2f2;
  padding: 12px 13px;
  outline: none;
}

.admin-activity-panel {
  margin: 24px 0;
}

.activity-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(44px, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 170px;
}

.activity-day {
  display: grid;
  grid-template-rows: auto 120px auto;
  gap: 8px;
  text-align: center;
  color: #aeb8c7;
}

.activity-bar {
  display: flex;
  align-items: end;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  border-radius: 8px;
  overflow: hidden;
}

.activity-bar i {
  width: 100%;
  display: block;
  background: linear-gradient(180deg, #22d3ee, #4ade80);
  box-shadow: 0 0 28px rgba(34, 211, 238, .22);
}

.bug-top-link {
  color: #93c5fd;
}

.bug-report-list {
  display: grid;
  gap: 16px;
}

.bug-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.bug-screenshot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
}

.static-content p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
  color: #dce6f4 !important;
  font-weight: 800;
  line-height: 1;
}

.footer-social-links a:hover {
  border-color: rgba(56, 189, 248, .5);
  background: rgba(56, 189, 248, .1);
  color: #fff !important;
}

.footer-social-links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 900;
}

.role-super-admin { color: #ffe5a3; border-color: rgba(251, 191, 36, .48); background: rgba(251, 191, 36, .12); }
.role-admin { color: #c8ddff; border-color: rgba(96, 165, 250, .48); background: rgba(96, 165, 250, .12); }
.role-modder { color: #c8f7d6; border-color: rgba(74, 222, 128, .48); background: rgba(74, 222, 128, .12); }
.role-user { color: #d3d9e4; }

.user-role-panel {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: end;
}

.user-role-panel h2,
.gallery-manager h2 {
  margin: 0;
}

@media (max-width: 1100px) {
  .gm-home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .news-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketplace-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-wrap {
    flex-wrap: wrap;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .marketplace-layout,
  .modder-permissions-grid,
  .admin-dashboard-hero,
  .user-role-panel,
  .profile-edit-form {
    grid-template-columns: 1fr;
  }

  .admin-overview-grid,
  .admin-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-edit-item {
    grid-template-columns: 1fr;
  }

  .gallery-edit-item img {
    width: 100%;
  }

  .market-sidebar {
    position: static;
  }

  .gm-hero,
  .gm-hero-inner {
    min-height: auto !important;
  }

  .tab-page-hero {
    min-height: 360px;
    margin-top: -24px;
    padding: 72px 0 48px;
  }

  .tab-page-hero-copy {
    width: min(620px, 100%);
  }

  .tab-page-hero-bg {
    left: calc((100% - 100vw) / 2);
    right: auto;
    width: 100vw;
    opacity: .56;
  }

  .gm-hero-inner {
    padding-top: 78px;
    padding-bottom: 126px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1680px) !important;
  }

  .brand-sub {
    display: none;
  }

  .gm-hero-copy h1 {
    font-size: 94px !important;
  }

  .gm-hero-logo {
    width: min(74vw, 270px);
    min-width: 0;
  }

  .gm-welcome-logo {
    width: min(72vw, 300px);
  }

  .gm-hero-copy p {
    font-size: 15px;
  }

  .tab-page-hero {
    min-height: 300px;
    margin-bottom: 24px;
    padding: 62px 0 40px;
  }

  .tab-page-hero-copy h1 {
    font-size: 42px;
  }

  .tab-page-hero-copy p {
    font-size: 15px;
  }

  .gm-hero-tabs,
  .hero-actions,
  .avatar-choice-group,
  .gm-home-grid,
  .cards-grid,
  .news-card-grid,
  .admin-overview-grid,
  .admin-action-grid,
  .admin-filter-bar,
  .bug-report-grid,
  .ticket-detail-head,
  .ticket-list-item {
    grid-template-columns: 1fr !important;
  }

  .ticket-detail-head,
  .ticket-list-item {
    display: grid;
  }

  .ticket-message.is-admin {
    margin-left: 0;
  }

  .activity-bars {
    grid-template-columns: repeat(7, minmax(30px, 1fr));
    gap: 6px;
  }

  .section-meta-line,
  .selected-modder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gm-hero-tabs,
  .hero-actions {
    display: grid;
  }

  .gm-market {
    margin-top: -70px !important;
  }

  .account-title {
    align-items: flex-start;
  }

  .account-avatar {
    width: 74px;
    height: 74px;
  }

  .modder-color-control {
    grid-template-columns: 1fr;
  }
}

/* GM presentation refresh v32 */
:root {
  --gm-surface: rgba(15, 17, 21, .92);
  --gm-surface-2: rgba(20, 23, 29, .92);
  --gm-border: rgba(255, 255, 255, .10);
  --gm-border-strong: rgba(255, 255, 255, .18);
  --gm-text-soft: #aeb6c4;
  --gm-star: #ffc857;
}

.mod-page-v2 {
  position: relative;
  padding-top: 34px;
}

.mod-page-v2::before {
  content: '';
  position: fixed;
  inset: 56px 0 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,.055), transparent 28%),
    radial-gradient(circle at 82% 36%, rgba(109,93,252,.05), transparent 24%);
}

.mod-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 680px) minmax(360px, 1fr);
  gap: clamp(30px, 5vw, 78px);
  align-items: center;
  padding: 32px 0 46px;
  border-bottom: 1px solid var(--gm-border);
}

.mod-showcase-media { min-width: 0; }
.mod-cover-button {
  display: block;
  width: 100%;
  max-width: 680px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 28px 70px rgba(0,0,0,.42);
  cursor: zoom-in;
}
.mod-cover-natural {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain;
}

.mod-hero-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
  max-width: 680px;
}
.mod-hero-gallery button {
  position: relative;
  padding: 0;
  border: 1px solid var(--gm-border);
  border-radius: 10px;
  overflow: hidden;
  background: #101216;
  cursor: zoom-in;
}
.mod-hero-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .2s ease, filter .2s ease;
}
.mod-hero-gallery button:hover img { transform: scale(1.045); filter: brightness(1.12); }
.mod-hero-gallery button span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-weight: 900;
  font-size: 24px;
}

.mod-showcase-copy h1 {
  margin: 14px 0 14px;
  font-size: clamp(44px, 5vw, 78px);
  line-height: .98;
  letter-spacing: -.045em;
  max-width: 940px;
}
.mod-kicker-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.mod-category-chip {
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 10px; border:1px solid var(--gm-border); border-radius:999px;
  color:#dce2ec; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em;
}
.mod-category-chip svg, .card-category-icon svg { width:16px; height:16px; fill:currentColor; }
.mod-lead {
  max-width: 760px;
  margin: 0 0 24px;
  color: #bdc5d1;
  font-size: 18px;
  line-height: 1.7;
}
.mod-author-card {
  display:flex; align-items:center; gap:12px; width:max-content; max-width:100%;
  padding:10px 12px; border:1px solid var(--gm-border); border-radius:14px;
  background:rgba(255,255,255,.025); color:#fff; text-decoration:none;
  box-shadow: inset 3px 0 0 var(--modder-color);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.mod-author-card:hover { background:rgba(255,255,255,.06); border-color:var(--gm-border-strong); transform:translateY(-1px); }
.mod-author-card img, .mod-author-fallback { width:42px; height:42px; border-radius:11px; object-fit:cover; }
.mod-author-fallback { display:grid; place-items:center; background:var(--modder-color); font-weight:900; }
.mod-author-card small { display:block; color:#8f98a7; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.mod-author-card strong { display:block; margin-top:2px; }
.mod-author-arrow { margin-left:12px; color:#8993a3; }

.mod-quick-stats {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px; margin:24px 0;
}
.mod-quick-stats > div {
  min-height:76px; padding:13px 14px; border:1px solid var(--gm-border); border-radius:12px;
  background:rgba(255,255,255,.025);
}
.mod-quick-stats small { display:block; color:#7f8999; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.mod-quick-stats strong { display:block; margin-top:8px; font-size:14px; overflow:hidden; text-overflow:ellipsis; }
.rating-value { color:var(--gm-star); }
.mod-primary-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.mod-primary-actions form { margin:0; }

.mod-main-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:26px;
  align-items:start;
  margin-top:34px;
}
.mod-content-stack { min-width:0; }
.mod-content-tabs {
  position:sticky; top:67px; z-index:10;
  display:flex; gap:4px; overflow:auto; scrollbar-width:none;
  padding:6px; margin-bottom:14px;
  border:1px solid var(--gm-border); border-radius:14px;
  background:rgba(10,12,15,.88); backdrop-filter:blur(18px);
}
.mod-content-tabs::-webkit-scrollbar { display:none; }
.mod-content-tabs button {
  flex:0 0 auto; border:0; border-radius:9px; padding:11px 15px;
  color:#8f99a9; background:transparent; font:inherit; font-size:13px; font-weight:800; cursor:pointer;
}
.mod-content-tabs button:hover { color:#fff; background:rgba(255,255,255,.04); }
.mod-content-tabs button.active { color:#fff; background:rgba(255,255,255,.10); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.mod-content-tabs button span { opacity:.55; margin-left:5px; }

.mod-tab-panel {
  padding:30px clamp(22px,4vw,48px) 40px;
  border:1px solid var(--gm-border); border-radius:18px;
  background:linear-gradient(180deg,rgba(17,20,25,.94),rgba(12,14,18,.92));
  box-shadow:0 24px 70px rgba(0,0,0,.24);
}
.mod-tabs-ready .mod-tab-panel { display:none; }
.mod-tabs-ready .mod-tab-panel.active { display:block; animation:gmFadeIn .18s ease; }
@keyframes gmFadeIn { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
.section-label { display:flex; gap:10px; align-items:center; margin-bottom:24px; color:#f1f4f8; font-size:22px; font-weight:900; }
.section-label span { color:#626d7e; font-size:11px; letter-spacing:.14em; }
.mod-rich-text { max-width:850px; color:#c1c8d4; font-size:16px; line-height:1.78; }
.mod-rich-text p { margin:0 0 1.1em; white-space:normal; }
.mod-rich-text h2 { margin:1.4em 0 .55em; color:#fff; font-size:28px; }
.mod-rich-text h3 { margin:1.3em 0 .5em; color:#f4f6f9; font-size:21px; }
.mod-rich-text ul { margin:1em 0 1.4em; padding-left:22px; }
.mod-rich-text li { margin:.45em 0; }
.mod-rich-text li::marker { color:#fff; }
.mod-rich-text blockquote { margin:1.4em 0; padding:14px 18px; border-left:3px solid #fff; background:rgba(255,255,255,.04); color:#dce1e9; }
.mod-rich-text code { padding:.15em .38em; border:1px solid rgba(255,255,255,.12); border-radius:5px; background:#090b0e; color:#edf0f5; font-family:Consolas,monospace; }
.mod-rich-text mark { padding:.06em .18em; border-radius:3px; color:inherit; }

.mod-sidebar-card {
  position:sticky; top:132px;
  padding:20px; border:1px solid var(--gm-border); border-radius:16px;
  background:var(--gm-surface); box-shadow:0 20px 60px rgba(0,0,0,.28);
}
.sidebar-title { display:flex; align-items:center; gap:9px; margin-bottom:16px; font-size:15px; font-weight:900; }
.sidebar-title > span { width:4px; height:18px; border-radius:9px; background:#fff; }
.mod-facts { margin:0; }
.mod-facts > div { display:flex; gap:15px; justify-content:space-between; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.07); }
.mod-facts dt { color:#7f8998; font-size:12px; }
.mod-facts dd { margin:0; max-width:55%; text-align:right; color:#e7ebf1; font-size:12px; font-weight:800; }
.mod-dependencies { margin-top:16px; padding:13px; border-radius:10px; background:rgba(255,255,255,.035); }
.mod-dependencies small { color:#7f8998; text-transform:uppercase; letter-spacing:.08em; font-size:10px; }
.mod-dependencies p { margin:6px 0 0; color:#c5ccd6; font-size:12px; line-height:1.55; }
.mod-tags { margin-top:14px; }
.sidebar-faq { width:100%; margin-top:15px; }

.mod-gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.mod-gallery-grid button { padding:0; overflow:hidden; border:1px solid var(--gm-border); border-radius:12px; background:#090b0e; cursor:zoom-in; }
.mod-gallery-grid img { display:block; width:100%; height:auto; max-height:480px; object-fit:contain; transition:transform .2s ease; }
.mod-gallery-grid button:hover img { transform:scale(1.025); }

.mod-video-list { display:grid; gap:18px; margin-top:22px; }
.gm-video-player { position:relative; overflow:hidden; border:1px solid var(--gm-border); border-radius:14px; background:#050608; }
.gm-video-player video { display:block; width:100%; max-height:700px; background:#000; }
.gm-video-overlay { position:absolute; inset:0; display:grid; place-items:center; border:0; background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.45)); color:#fff; cursor:pointer; }
.gm-video-overlay span { display:grid; place-items:center; width:70px; height:70px; border-radius:50%; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.25); backdrop-filter:blur(12px); font-size:25px; padding-left:5px; }
.gm-video-player.is-playing .gm-video-overlay { opacity:0; pointer-events:none; }
.gm-video-controls { position:absolute; left:10px; right:10px; bottom:10px; display:flex; align-items:center; gap:9px; padding:8px 10px; border:1px solid rgba(255,255,255,.14); border-radius:10px; background:rgba(7,8,10,.82); backdrop-filter:blur(14px); }
.gm-video-controls button { border:0; background:transparent; color:#fff; cursor:pointer; }
.gm-video-controls [data-video-progress] { flex:1; min-width:70px; }
.gm-video-controls [data-video-volume] { width:80px; }
.gm-video-controls span { min-width:40px; color:#d1d7e0; font-size:11px; font-variant-numeric:tabular-nums; }

.version-timeline { position:relative; margin-left:8px; }
.version-timeline::before { content:''; position:absolute; left:6px; top:7px; bottom:7px; width:1px; background:rgba(255,255,255,.13); }
.version-timeline-item { position:relative; padding-left:34px; margin-bottom:16px; }
.version-dot { position:absolute; left:0; top:18px; width:13px; height:13px; border:3px solid #0f1115; border-radius:50%; background:#dfe5ed; box-shadow:0 0 0 1px rgba(255,255,255,.3); }
.version-card { padding:17px 18px; border:1px solid var(--gm-border); border-radius:13px; background:rgba(255,255,255,.025); }
.version-head { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.version-head strong { color:#fff; font-size:17px; }
.version-head span { color:#798494; font-size:11px; }
.version-head em { margin-left:auto; padding:4px 7px; border-radius:5px; background:rgba(255,255,255,.08); color:#cfd6df; font-size:9px; font-style:normal; text-transform:uppercase; }
.changelog-lines { margin-top:10px; }
.changelog-lines p { display:flex; gap:9px; align-items:flex-start; margin:8px 0; color:#bac2ce; font-size:13px; line-height:1.55; }
.change-type { flex:0 0 auto; min-width:54px; padding:2px 6px; border-radius:5px; text-align:center; font-size:9px; font-weight:900; letter-spacing:.06em; background:rgba(255,255,255,.08); color:#dce3ec; }
.change-new,.change-add { color:#9ee7bd; background:rgba(70,180,115,.12); }
.change-fix { color:#ffd27a; background:rgba(220,160,50,.12); }
.change-remove { color:#ff9b9b; background:rgba(225,80,80,.12); }
.change-security { color:#c5adff; background:rgba(130,90,220,.14); }

.related-mods-section, .reviews-panel-v2 { margin-top:44px; }
.related-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.reviews-panel-v2 { padding:30px; border:1px solid var(--gm-border); border-radius:18px; background:rgba(14,16,20,.88); }
.reviews-head { display:flex; align-items:flex-start; justify-content:space-between; gap:30px; margin-bottom:24px; }
.reviews-head h2 { margin:4px 0 0; font-size:30px; }
.reviews-score { display:grid; grid-template-columns:auto auto; gap:0 12px; align-items:center; text-align:right; }
.reviews-score strong { grid-row:1/3; font-size:36px; }
.reviews-score span { color:var(--gm-star); letter-spacing:2px; }
.reviews-score small { color:#7f8998; }
.review-form-v2 { display:grid; grid-template-columns:1fr auto; gap:12px; margin-bottom:22px; }
.review-form-v2 textarea { grid-column:1/-1; min-height:112px; }
.star-rating-input { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:3px; }
.star-rating-input input { position:absolute; opacity:0; pointer-events:none; }
.star-rating-input label { color:#3f4652; font-size:27px; cursor:pointer; transition:color .15s ease, transform .15s ease; }
.star-rating-input label:hover, .star-rating-input label:hover ~ label, .star-rating-input input:checked ~ label { color:var(--gm-star); }
.star-rating-input label:hover { transform:scale(1.08); }
.review-list-v2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.review-card-v2 { padding:17px; border:1px solid rgba(255,255,255,.08); border-radius:13px; background:rgba(255,255,255,.025); }
.review-author { display:flex; align-items:center; gap:10px; }
.review-author > img, .review-author > span { width:38px; height:38px; border-radius:50%; object-fit:cover; }
.review-author > span { display:grid; place-items:center; background:#222832; font-weight:900; }
.review-author strong, .review-author small { display:block; }
.review-author a { color:#fff; text-decoration:none; }
.review-author small { margin-top:2px; color:#778190; font-size:10px; }
.review-stars { margin:11px 0 7px; letter-spacing:2px; }
.review-stars span { color:var(--gm-star); }
.review-stars i { color:#353b45; font-style:normal; }
.review-card-v2 p { margin:0; color:#bec6d1; line-height:1.6; white-space:pre-line; }
.review-empty { display:flex; gap:12px; align-items:center; justify-content:center; }
.review-empty strong { font-size:28px; color:#596271; }

.gm-lightbox[hidden] { display:none; }
.gm-lightbox { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; padding:50px 70px; background:rgba(0,0,0,.92); backdrop-filter:blur(10px); }
.gm-lightbox img { max-width:min(1500px,92vw); max-height:88vh; width:auto; height:auto; object-fit:contain; border-radius:12px; box-shadow:0 30px 90px rgba(0,0,0,.6); }
.gm-lightbox button { position:absolute; border:0; background:rgba(255,255,255,.08); color:#fff; cursor:pointer; backdrop-filter:blur(12px); }
.gm-lightbox-close { top:18px; right:18px; width:44px; height:44px; border-radius:50%; font-size:28px; }
.gm-lightbox-prev,.gm-lightbox-next { top:50%; width:48px; height:70px; border-radius:10px; transform:translateY(-50%); font-size:40px; }
.gm-lightbox-prev { left:18px; }.gm-lightbox-next { right:18px; }

/* Cards */
.mod-card-v2 { overflow:hidden; border-color:rgba(255,255,255,.09)!important; background:linear-gradient(180deg,rgba(20,23,28,.96),rgba(13,15,19,.96))!important; transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.mod-card-v2:hover { transform:translateY(-5px); border-color:rgba(255,255,255,.2)!important; box-shadow:0 24px 55px rgba(0,0,0,.34); }
.card-cover-natural-wrap { position:relative; display:block; height:auto!important; aspect-ratio:auto!important; overflow:hidden; background:transparent!important; }
.card-cover-natural { display:block; width:100%!important; height:auto!important; max-height:520px; object-fit:contain!important; background:transparent!important; transition:transform .22s ease,filter .22s ease; }
.mod-card-v2:hover .card-cover-natural { transform:scale(1.025); filter:brightness(1.08); }
.card-cover-overlay { position:absolute; left:12px; bottom:12px; padding:7px 10px; border:1px solid rgba(255,255,255,.15); border-radius:8px; background:rgba(0,0,0,.7); color:#fff; font-size:11px; font-weight:800; opacity:0; transform:translateY(5px); transition:.2s ease; }
.mod-card-v2:hover .card-cover-overlay { opacity:1; transform:none; }
.card-access-badge { position:absolute; top:12px; left:12px; margin:0; backdrop-filter:blur(10px); }
.mod-card-topline { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.card-category-icon { display:inline-flex; align-items:center; gap:6px; color:#8e98a8; font-size:10px; text-transform:uppercase; letter-spacing:.07em; }
.mod-card-v2 h3 { margin:0 0 9px; font-size:21px; line-height:1.15; }
.mod-card-summary { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; min-height:4.8em; color:#929caa!important; line-height:1.6; }
.mod-card-author { display:inline-flex; align-items:center; gap:7px; margin-top:8px; color:#c8d0db; font-size:11px; font-weight:700; text-decoration:none; }
.mod-card-author img { width:22px; height:22px; border-radius:6px; object-fit:cover; box-shadow:0 0 0 1px var(--modder-color); }
.mod-card-footer { display:flex; justify-content:space-between; gap:8px; margin-top:16px; padding-top:12px; border-top:1px solid rgba(255,255,255,.07); color:#737e8e; font-size:10px; font-weight:700; }

.market-view-tabs { display:flex; flex-wrap:wrap; gap:7px; margin:0 0 22px; padding:6px; width:max-content; max-width:100%; border:1px solid var(--gm-border); border-radius:13px; background:rgba(8,10,13,.72); }
.market-view-tabs a { padding:9px 13px; border-radius:8px; color:#858f9f; font-size:11px; font-weight:800; text-decoration:none; }
.market-view-tabs a:hover { color:#fff; background:rgba(255,255,255,.04); }
.market-view-tabs a.active { color:#fff; background:rgba(255,255,255,.11); }

/* Home */
.gm-home-stats { position:relative; z-index:3; display:grid; grid-template-columns:repeat(4,1fr); gap:1px; margin-top:26px; margin-bottom:72px; border:1px solid var(--gm-border); border-radius:16px; overflow:hidden; background:rgba(8,10,12,.86); backdrop-filter:blur(18px); }
.gm-home-stats > div { min-height:100px; display:flex; flex-direction:column; justify-content:center; padding:18px 24px; border-right:1px solid var(--gm-border); }
.gm-home-stats > div:last-child { border-right:0; }
.gm-home-stats strong { color:#fff; font-size:29px; line-height:1; }
.gm-home-stats span { margin-top:8px; color:#778191; font-size:10px; text-transform:uppercase; letter-spacing:.09em; }
.home-v28-icon svg { width:34px; height:34px; fill:currentColor; }

/* Admin rich editor */
.rich-editor-shell { margin-top:7px; border:1px solid rgba(255,255,255,.11); border-radius:12px; overflow:hidden; background:rgba(9,11,14,.9); }
.rich-editor-toolbar { display:flex; flex-wrap:wrap; gap:5px; align-items:center; padding:8px; border-bottom:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.025); }
.rich-editor-toolbar button { min-width:32px; height:30px; padding:0 8px; border:1px solid rgba(255,255,255,.09); border-radius:7px; background:#151920; color:#dce2eb; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.rich-editor-toolbar button:hover { border-color:rgba(255,255,255,.22); background:#1c222b; }
.rich-editor-toolbar label { display:inline-flex!important; width:auto!important; align-items:center; gap:5px; margin:0!important; color:#8993a2; font-size:10px; }
.rich-editor-toolbar input[type=color] { width:30px; height:30px; padding:2px; border:0; border-radius:6px; background:transparent; }
.rich-editor-shell textarea { width:100%; min-height:160px; margin:0!important; border:0!important; border-radius:0!important; resize:vertical; background:#0c0f13!important; font-family:Consolas,monospace; line-height:1.55; }
.rich-editor-preview { padding:15px; border-top:1px solid rgba(255,255,255,.08); color:#c2cad5; font-size:13px; line-height:1.7; }
.rich-editor-preview:empty::before { content:'Предпросмотр форматирования'; color:#555f6e; }
.video-manager { margin-top:28px; padding-top:24px; border-top:1px solid rgba(255,255,255,.09); }
.video-edit-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:12px 0; }
.video-edit-item { padding:10px; border:1px solid rgba(255,255,255,.08); border-radius:10px; background:rgba(255,255,255,.02); }
.video-edit-item video { display:block; width:100%; max-height:260px; background:#000; border-radius:7px; }
.video-edit-item code { display:block; margin:8px 0; overflow:hidden; text-overflow:ellipsis; }
.danger-check { color:#e49b9b!important; }

@media (max-width: 1100px) {
  .mod-showcase { grid-template-columns:1fr; }
  .mod-cover-button,.mod-hero-gallery { max-width:820px; }
  .mod-main-layout { grid-template-columns:1fr; }
  .mod-sidebar-card { position:static; }
  .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .gm-logo-site-runner { display:none!important; }
  .mod-page-v2 { padding-top:14px; }
  .mod-showcase { gap:22px; padding:14px 0 30px; }
  .mod-cover-button { border-radius:12px; }
  .mod-showcase-copy h1 { font-size:clamp(36px,12vw,55px); }
  .mod-lead { font-size:15px; }
  .mod-quick-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .mod-primary-actions { display:grid; grid-template-columns:1fr; }
  .mod-primary-actions .btn,.mod-primary-actions form,.mod-primary-actions form button { width:100%; }
  .mod-main-layout { margin-top:22px; }
  .mod-content-tabs { top:58px; margin-left:-5px; margin-right:-5px; border-radius:11px; }
  .mod-tab-panel { padding:22px 17px 28px; border-radius:13px; }
  .mod-rich-text { font-size:15px; line-height:1.72; }
  .mod-gallery-grid { grid-template-columns:1fr; }
  .gm-video-controls [data-video-volume], .gm-video-controls [data-video-mute] { display:none; }
  .gm-video-controls { left:6px; right:6px; bottom:6px; }
  .reviews-panel-v2 { padding:20px 15px; border-radius:13px; }
  .reviews-head { flex-direction:column; }
  .review-form-v2 { grid-template-columns:1fr; }
  .review-form-v2 textarea { grid-column:auto; }
  .review-list-v2,.related-grid { grid-template-columns:1fr; }
  .gm-lightbox { padding:54px 14px; }
  .gm-lightbox-prev,.gm-lightbox-next { width:38px; height:58px; font-size:30px; background:rgba(0,0,0,.55); }
  .gm-lightbox-prev { left:4px; }.gm-lightbox-next { right:4px; }
  .gm-home-stats { grid-template-columns:repeat(2,1fr); margin-top:16px; margin-bottom:55px; }
  .gm-home-stats > div { min-height:86px; border-bottom:1px solid var(--gm-border); }
  .gm-home-stats > div:nth-child(2n) { border-right:0; }
  .gm-home-stats > div:nth-last-child(-n+2) { border-bottom:0; }
  .video-edit-list { grid-template-columns:1fr; }
}
.mod-feature-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:0 0 28px; }
.mod-feature-list > div { display:flex; gap:10px; align-items:flex-start; padding:12px 13px; border:1px solid rgba(255,255,255,.075); border-radius:10px; background:rgba(255,255,255,.025); }
.mod-feature-list span { flex:0 0 auto; display:grid; place-items:center; width:21px; height:21px; border-radius:50%; background:rgba(120,210,155,.11); color:#9ee7bd; font-size:11px; font-weight:900; }
.mod-feature-list p { margin:0; color:#c6cdd7; font-size:13px; line-height:1.5; }
@media (max-width:640px){.mod-feature-list{grid-template-columns:1fr;}}
.gm-home-stats + .gm-market { margin-top:0!important; }
.gm-home-showcase { padding:18px 0 74px; }
.gm-home-showcase-tabs { display:flex; flex-wrap:wrap; gap:7px; width:max-content; max-width:100%; padding:6px; margin-bottom:18px; border:1px solid var(--gm-border); border-radius:13px; background:rgba(8,10,13,.82); }
.gm-home-showcase-tabs button { padding:10px 14px; border:0; border-radius:8px; background:transparent; color:#828c9b; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.gm-home-showcase-tabs button.active { color:#fff; background:rgba(255,255,255,.1); }
.gm-home-collection { display:none; }
.gm-home-collection.active { display:block; animation:gmFadeIn .18s ease; }
.gm-home-showcase .cards-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:980px){.gm-home-showcase .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:640px){.gm-home-showcase .cards-grid{grid-template-columns:1fr;}.gm-home-showcase-tabs{width:100%;}.gm-home-showcase-tabs button{flex:1;}}
.gm-logo-run-link { transition:filter .15s ease,opacity .35s ease; }
.mod-rich-text a { color:#e8edf5; text-decoration-color:rgba(232,237,245,.38); text-underline-offset:3px; }
.mod-rich-text a:hover { text-decoration-color:currentColor; }

/* GM v3 home hero / featured / anchored runner */
.gm-hero { position:relative; overflow:hidden; }
.gm-hero-inner {
  display:grid!important;
  grid-template-columns:minmax(0, .92fr) minmax(360px, .72fr)!important;
  align-items:start;
  gap:clamp(42px,6vw,110px);
  min-height:720px!important;
  padding-top:96px;
  padding-bottom:58px;
}
.gm-hero-copy { min-width:0; }
.gm-logo-run-link {
  position:absolute!important;
  left:0!important;
  top:0!important;
  z-index:12;
  width:76px;
  height:76px;
}
.gm-hero-featured {
  position:relative;
  z-index:6;
  width:min(100%,520px);
  justify-self:end;
  margin-top:0;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(17,20,24,.88),rgba(7,9,11,.94));
  box-shadow:0 32px 80px rgba(0,0,0,.46);
  backdrop-filter:blur(18px);
}
.gm-featured-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding:17px 18px 13px; border-bottom:1px solid rgba(255,255,255,.08); }
.gm-featured-head .eyebrow { display:block; margin-bottom:5px; font-size:9px; }
.gm-featured-head strong { display:block; color:#fff; font-size:17px; }
.gm-featured-head > span { color:#7f8996; font-size:11px; font-weight:800; }
.gm-featured-stage { position:relative; }
.gm-featured-slide { display:none; animation:gmFadeIn .22s ease; }
.gm-featured-slide.active { display:block; }
.gm-featured-cover { display:block; max-height:310px; overflow:hidden; background:transparent; }
.gm-featured-cover img { display:block; width:100%; height:auto; max-height:310px; object-fit:contain; margin:auto; background:transparent; }
.gm-featured-copy { padding:17px 18px 20px; }
.gm-featured-meta { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:9px; }
.gm-featured-meta span { padding:5px 8px; border:1px solid rgba(255,255,255,.1); border-radius:999px; color:#8f99a8; font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; }
.gm-featured-copy h2 { margin:0 0 8px; font-size:clamp(23px,2.1vw,32px); line-height:1.05; }
.gm-featured-copy h2 a { color:#fff; text-decoration:none; }
.gm-featured-copy p { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; min-height:4.5em; margin:0 0 13px; color:#969fac; font-size:13px; line-height:1.5; }
.gm-featured-open { color:#eceff4; font-size:11px; font-weight:900; text-decoration:none; }
.gm-featured-controls { display:grid; grid-template-columns:42px 1fr 42px; align-items:center; gap:10px; padding:10px 12px; border-top:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02); }
.gm-featured-controls > button { width:42px; height:34px; border:1px solid rgba(255,255,255,.1); border-radius:8px; background:#11151a; color:#fff; cursor:pointer; }
.gm-featured-controls > button:hover { border-color:rgba(255,255,255,.3); background:#191e25; }
.gm-featured-dots { display:flex; justify-content:center; gap:6px; }
.gm-featured-dots button { width:7px; height:7px; padding:0; border:0; border-radius:50%; background:#3d444e; cursor:pointer; transition:.18s ease; }
.gm-featured-dots button.active { width:22px; border-radius:999px; background:#f1f3f6; }
.gm-home-stats { margin-top:26px!important; margin-bottom:72px!important; }
.gm-market { margin-top:0!important; }

@media (max-width: 1100px) {
  .gm-hero-inner { grid-template-columns:minmax(0,1fr) minmax(320px,.8fr)!important; gap:34px; }
  .gm-hero-featured { width:100%; }
}
@media (max-width: 900px) {
  .gm-hero-inner { display:block!important; min-height:auto!important; padding-top:82px; padding-bottom:36px; }
  .gm-hero-featured { margin:34px 0 0; width:min(100%,620px); justify-self:auto; }
  .gm-home-stats { margin-top:20px!important; }
}
@media (max-width: 760px), (pointer:coarse) {
  .gm-logo-site-runner { display:none!important; }
  .gm-hero-featured { margin-top:26px; border-radius:14px; }
  .gm-featured-cover { max-height:260px; }
  .gm-featured-cover img { max-height:260px; }
  .gm-home-stats { margin-top:16px!important; }
}

/* GM v3 admin language tabs + visual editor + source selector */
.translation-editor { margin:28px 0; border:1px solid rgba(255,255,255,.10); border-radius:16px; overflow:hidden; background:rgba(8,10,13,.62); }
.translation-tabbar { display:flex; gap:0; padding:0 14px; border-bottom:1px solid rgba(255,255,255,.09); background:rgba(255,255,255,.018); }
.translation-tabbar button { position:relative; min-width:150px; padding:16px 18px 14px; border:0; border-bottom:2px solid transparent; background:transparent; color:#8d96a5; font:inherit; font-weight:800; cursor:pointer; text-align:left; }
.translation-tabbar button span { margin-left:8px; padding:3px 6px; border-radius:6px; background:rgba(255,255,255,.06); color:#697484; font-size:10px; }
.translation-tabbar button.active { color:#fff; border-bottom-color:#fff; }
.translation-tabbar button.active span { color:#fff; background:rgba(255,255,255,.12); }
.translation-panel { display:none; padding:18px; }
.translation-panel.active { display:block; }
.translation-panel fieldset { margin:0; border:0; padding:0; }
.translation-panel legend { margin-bottom:18px; color:#fff; font-weight:900; }
.translation-panel label { display:block; margin-bottom:16px; }
.translation-panel .rich-editor-field { display:block; margin-bottom:16px; color:#bfc8d6; }

.rich-editor-wysiwyg .rich-editor-storage { display:none!important; }
.rich-editor-wysiwyg .rich-editor-toolbar { position:sticky; top:0; z-index:3; }
.rich-editor-surface {
  min-height:190px;
  max-width:none!important;
  padding:18px 20px;
  outline:none;
  background:#0c0f13;
  color:#d4dae3!important;
  font-size:14px!important;
  line-height:1.7!important;
  cursor:text;
}
.rich-editor-surface:focus { box-shadow:inset 0 0 0 1px rgba(255,255,255,.15); }
.rich-editor-surface:empty::before { content:'Введите текст…'; color:#4f5968; pointer-events:none; }
.rich-editor-surface p { margin:0 0 1em; }
.rich-editor-surface h2 { font-size:24px!important; }
.rich-editor-surface h3 { font-size:19px!important; }
.rich-editor-surface pre { white-space:pre-wrap; padding:12px; border-radius:8px; background:#07090c; color:#d8dee8; font-family:Consolas,monospace; }
.rich-editor-toolbar input[type=color] { cursor:pointer; border:1px solid rgba(255,255,255,.10)!important; background:#151920!important; }

.download-source-manager { margin:28px 0; padding:18px; border:1px solid rgba(255,255,255,.10); border-radius:14px; background:rgba(255,255,255,.018); }
.download-source-manager legend { padding:0 8px; color:#fff; font-weight:900; }
.download-source-switcher { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-bottom:16px; }
.download-source-switcher button { min-height:44px; padding:10px 12px; border:1px solid rgba(255,255,255,.10); border-radius:9px; background:#11151b; color:#8e98a8; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.download-source-switcher button:hover { color:#fff; border-color:rgba(255,255,255,.22); }
.download-source-switcher button.active { color:#07090b; background:#f1f3f5; border-color:#fff; }
.download-source-pane[hidden] { display:none!important; }
.download-source-pane label { display:block; }
.download-current-file { margin:10px 0 0; color:#9da6b4; font-size:12px; }
.form-help { margin:8px 0 0; color:#707b8b; font-size:11px; }
.changelog-editor-grid { align-items:start; }

@media(max-width:760px){
  .translation-tabbar button { min-width:0; flex:1; padding-left:10px; padding-right:10px; }
  .translation-panel { padding:13px; }
  .download-source-switcher { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* GM v3 unified community + private support dock */
.gm-chat-dock {
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:2200;
  display:flex;
  align-items:flex-end;
  gap:9px;
  pointer-events:none;
  font-family:inherit;
}
.gm-chat-dock > * { pointer-events:auto; }
.gm-chat-panel {
  width:min(372px,calc(100vw - 96px));
  height:min(680px,calc(100vh - 36px));
  min-height:430px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:17px;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(18,21,26,.985),rgba(8,10,13,.99));
  box-shadow:0 28px 80px rgba(0,0,0,.62),0 0 0 1px rgba(0,0,0,.5);
  backdrop-filter:blur(20px);
}
.gm-chat-panel[hidden] { display:none!important; }
.gm-chat-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:67px;
  padding:12px 13px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background:linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.018));
}
.gm-chat-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.gm-chat-logo {
  display:grid;
  place-items:center;
  width:39px;
  height:39px;
  flex:0 0 39px;
  border-radius:11px;
  background:#eef1f4;
  box-shadow:0 5px 20px rgba(255,255,255,.08);
}
.gm-chat-logo svg { width:21px; height:21px; fill:#0a0c0f; }
.gm-chat-brand strong { display:block; color:#fff; font-size:14px; line-height:1.15; }
.gm-chat-brand span { display:block; margin-top:4px; color:#7f8996; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gm-chat-icon-button {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:9px;
  background:rgba(255,255,255,.025);
  color:#929ba8;
  font:inherit;
  font-size:20px;
  cursor:pointer;
}
.gm-chat-icon-button:hover { color:#fff; border-color:rgba(255,255,255,.22); background:rgba(255,255,255,.07); }
.gm-chat-tabs { display:grid; grid-template-columns:1fr 1fr; height:43px; border-bottom:1px solid rgba(255,255,255,.075); }
.gm-chat-tabs button {
  position:relative;
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:#727d8b;
  font:inherit;
  font-size:10px;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
  cursor:pointer;
}
.gm-chat-tabs button:hover { color:#c8ced7; }
.gm-chat-tabs button.active { color:#fff; border-bottom-color:#e9ecf0; background:rgba(255,255,255,.025); }
.gm-support-dot {
  display:inline-block;
  width:7px;
  height:7px;
  margin-left:6px;
  border-radius:50%;
  background:#e3a94a;
  box-shadow:0 0 0 3px rgba(227,169,74,.12);
}
.gm-chat-view { display:none; height:calc(100% - 110px); min-height:0; }
.gm-chat-view.active { display:flex; flex-direction:column; }
.gm-chat-messages {
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:14px 12px 18px;
  scrollbar-width:thin;
  scrollbar-color:#3a414b transparent;
}
.gm-chat-messages::-webkit-scrollbar { width:5px; }
.gm-chat-messages::-webkit-scrollbar-thumb { border-radius:999px; background:#3a414b; }
.gm-chat-message { display:grid; grid-template-columns:34px minmax(0,1fr); gap:9px; align-items:start; margin:0 0 14px; }
.gm-chat-avatar {
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  overflow:hidden;
  background:#171c22;
  color:#d8dee7;
  font-size:9px;
  font-weight:900;
}
.gm-chat-avatar img { display:block; width:100%; height:100%; object-fit:cover; }
.gm-chat-message-body { min-width:0; }
.gm-chat-meta { display:flex; align-items:center; gap:7px; min-width:0; margin:0 1px 5px; }
.gm-chat-meta a,.gm-chat-meta strong { min-width:0; overflow:hidden; text-overflow:ellipsis; color:#e7ebf0; font-size:10.5px; font-weight:900; text-decoration:none; white-space:nowrap; }
.gm-chat-meta time { margin-left:auto; flex:0 0 auto; color:#596574; font-size:8px; font-variant-numeric:tabular-nums; }
.gm-chat-message-body > p {
  margin:0;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:4px 11px 11px 11px;
  background:#171b21;
  color:#aeb7c4;
  font-size:11px;
  line-height:1.48;
  overflow-wrap:anywhere;
  white-space:pre-wrap;
}
.gm-chat-message.is-own .gm-chat-message-body > p { border-color:rgba(255,255,255,.11); background:#1b2027; color:#c8d0da; }
.gm-chat-delete {
  width:18px;
  height:18px;
  margin-left:1px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:#5e6875;
  cursor:pointer;
}
.gm-chat-delete:hover { color:#e47f7f; background:rgba(228,127,127,.08); }
.gm-chat-empty { display:grid; place-items:center; align-content:center; min-height:100%; padding:24px; color:#697482; font-size:11px; text-align:center; }
.gm-chat-empty strong { display:block; margin-bottom:5px; color:#d9dee6; font-size:13px; }
.gm-chat-empty span { display:block; max-width:250px; line-height:1.55; }
.gm-chat-composer {
  display:grid;
  grid-template-columns:minmax(0,1fr) 38px;
  gap:8px;
  align-items:end;
  padding:10px;
  border-top:1px solid rgba(255,255,255,.075);
  background:#0b0e12;
}
.gm-chat-composer input,.gm-chat-composer textarea {
  width:100%;
  min-width:0;
  min-height:38px;
  max-height:120px;
  resize:none;
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:9px;
  outline:none;
  background:#11151b;
  color:#e2e6eb;
  font:inherit;
  font-size:11px;
  line-height:1.45;
}
.gm-chat-composer input:focus,.gm-chat-composer textarea:focus { border-color:rgba(255,255,255,.28); box-shadow:0 0 0 3px rgba(255,255,255,.035); }
.gm-chat-composer button {
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border:0;
  border-radius:9px;
  background:#eceff2;
  color:#090b0e;
  cursor:pointer;
}
.gm-chat-composer button:disabled { opacity:.42; cursor:default; }
.gm-chat-composer button svg { width:17px; height:17px; fill:currentColor; }
.gm-chat-gate { margin:auto 12px 12px; padding:14px; border-top:1px solid rgba(255,255,255,.075); color:#858f9d; font-size:10px; }
.gm-chat-gate p { margin:0 0 10px; line-height:1.45; }
.gm-chat-rail { display:flex; flex-direction:column; gap:8px; }
.gm-chat-rail-button {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  width:55px;
  min-height:76px;
  padding:8px 5px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:14px;
  background:rgba(12,15,19,.94);
  color:#798492;
  box-shadow:0 14px 34px rgba(0,0,0,.36);
  cursor:pointer;
  backdrop-filter:blur(14px);
}
.gm-chat-rail-button:hover,.gm-chat-rail-button.active { color:#fff; border-color:rgba(255,255,255,.24); background:#151a20; }
.gm-chat-rail-button svg { width:20px; height:20px; fill:currentColor; }
.gm-chat-rail-button span { font-size:8px; font-weight:900; letter-spacing:.04em; writing-mode:vertical-rl; transform:rotate(180deg); }
.gm-chat-rail-button i { position:absolute; right:7px; top:7px; width:7px; height:7px; border-radius:50%; background:#e3a94a; box-shadow:0 0 0 3px rgba(227,169,74,.13); }
.gm-support-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:38px;
  padding:8px 12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.018);
  color:#778291;
  font-size:9px;
}
.gm-support-toolbar > div { display:flex; align-items:center; gap:7px; }
.gm-live-dot { width:7px; height:7px; border-radius:50%; background:#73d59c; box-shadow:0 0 0 3px rgba(115,213,156,.10); }
.gm-support-toolbar button { border:0; background:transparent; color:#a47c7c; font:inherit; font-size:9px; font-weight:800; cursor:pointer; }
.gm-support-toolbar button:hover { color:#ed9f9f; }
.gm-support-hint { padding:9px 12px; border-bottom:1px solid rgba(255,255,255,.055); color:#606b78; font-size:8.5px; line-height:1.45; }
.gm-support-messages { padding-top:12px; }
.gm-support-message.is-staff .gm-chat-message-body > p { border-color:rgba(127,164,206,.18); background:#141a21; color:#c2ccda; }
.gm-support-message.is-staff .gm-chat-meta strong { color:#a8bdd4; }
.gm-support-message.is-own .gm-chat-message-body > p { background:#1c2026; }
.gm-support-gate {
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:24px 22px;
  text-align:center;
}
.gm-support-gate-icon {
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  margin-bottom:13px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:15px;
  background:rgba(255,255,255,.04);
  color:#e7ebf0;
  font-size:20px;
  font-weight:900;
}
.gm-support-gate strong { color:#edf0f4; font-size:14px; }
.gm-support-gate p { max-width:290px; margin:9px auto 18px; color:#7f8996; font-size:10.5px; line-height:1.55; }
.gm-support-actions { display:grid; width:100%; gap:7px; }
.gm-support-actions .btn { justify-content:center; min-height:38px; font-size:10px; }

@media(max-width:640px){
  .gm-chat-dock { right:8px; bottom:8px; gap:6px; }
  .gm-chat-panel { width:calc(100vw - 78px); height:min(620px,calc(100dvh - 16px)); min-height:390px; border-radius:14px; }
  .gm-chat-rail-button { width:54px; min-height:68px; }
  .gm-chat-meta time { font-size:7.5px; }
}

.account-discord-link { margin-top:10px; }

/* GM v4 runner zone: the evasive logo lives only in the free right side of the hero. */
.gm-logo-runner-zone {
  position:absolute;
  top:82px;
  right:clamp(16px,2vw,38px);
  z-index:11;
  width:clamp(160px,17vw,290px);
  height:430px;
  pointer-events:none;
}
.gm-logo-runner-zone .gm-logo-run-link { pointer-events:auto; }
@media (max-width: 1180px) {
  .gm-logo-runner-zone { width:clamp(135px,14vw,190px); right:14px; }
}
@media (max-width:760px), (pointer:coarse) {
  .gm-logo-runner-zone { display:none!important; }
}

/* GM v4: community chat and private support are separate widgets. */
.gm-chat-system { position:relative; z-index:2200; }
.gm-community-chat,
.gm-support-chat {
  position:fixed;
  right:18px;
  z-index:2200;
  display:flex;
  align-items:flex-end;
  gap:9px;
  pointer-events:none;
  font-family:inherit;
}
.gm-community-chat { bottom:94px; }
.gm-support-chat { bottom:18px; }
.gm-community-chat > *,
.gm-support-chat > * { pointer-events:auto; }

.gm-community-panel,
.gm-support-panel {
  width:min(372px,calc(100vw - 96px));
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  border-radius:17px;
  background:linear-gradient(180deg,rgba(18,21,26,.99),rgba(8,10,13,.995));
  box-shadow:0 28px 80px rgba(0,0,0,.62),0 0 0 1px rgba(0,0,0,.5);
  backdrop-filter:blur(20px);
}
.gm-community-panel { height:min(680px,calc(100vh - 126px)); min-height:430px; }
.gm-support-panel { height:min(640px,calc(100vh - 36px)); min-height:420px; }
.gm-community-panel[hidden],
.gm-support-panel[hidden] { display:none!important; }
.gm-community-panel,
.gm-support-panel { flex-direction:column; }
.gm-community-panel:not([hidden]),
.gm-support-panel:not([hidden]) { display:flex; }
.gm-community-body,
.gm-support-body { display:flex; flex:1 1 auto; min-height:0; flex-direction:column; }

.gm-community-launcher,
.gm-support-launcher {
  position:relative;
  border:1px solid rgba(255,255,255,.13);
  background:rgba(12,15,19,.96);
  color:#8994a1;
  box-shadow:0 14px 34px rgba(0,0,0,.38);
  cursor:pointer;
  backdrop-filter:blur(14px);
  transition:border-color .16s ease,background .16s ease,color .16s ease,transform .16s ease;
}
.gm-community-launcher:hover,
.gm-community-launcher.active,
.gm-support-launcher:hover,
.gm-support-launcher.active {
  color:#fff;
  border-color:rgba(255,255,255,.30);
  background:#171c22;
}
.gm-community-launcher:active,
.gm-support-launcher:active { transform:translateY(1px); }

.gm-community-launcher {
  display:flex;
  width:55px;
  min-height:82px;
  padding:9px 5px;
  border-radius:14px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.gm-community-launcher svg { width:20px; height:20px; fill:currentColor; }
.gm-community-launcher span {
  font-size:8px;
  font-weight:900;
  letter-spacing:.055em;
  writing-mode:vertical-rl;
  transform:rotate(180deg);
}

.gm-support-launcher {
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:50%;
}
.gm-support-launcher svg { width:24px; height:24px; fill:currentColor; }
.gm-support-launcher > span {
  position:absolute;
  right:68px;
  top:50%;
  transform:translate(8px,-50%);
  padding:7px 9px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:#101419;
  color:#dfe4ea;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:.16s ease;
}
.gm-support-launcher:hover > span { opacity:1; transform:translate(0,-50%); }
.gm-support-launcher i {
  position:absolute;
  right:2px;
  top:2px;
  width:9px;
  height:9px;
  border:2px solid #11151a;
  border-radius:50%;
  background:#e3a94a;
  box-shadow:0 0 0 3px rgba(227,169,74,.13);
}
.gm-support-header { flex:0 0 auto; }
.gm-support-logo { background:#dfe4ea; }
.gm-support-body .gm-support-toolbar,
.gm-support-body .gm-support-hint { flex:0 0 auto; }
.gm-support-body .gm-support-messages { flex:1 1 auto; min-height:0; }
.gm-support-body .gm-support-composer { flex:0 0 auto; }

/* The old unified tab strip is intentionally gone in v4. */
.gm-chat-tabs,
.gm-chat-rail { display:none!important; }

@media (max-width:640px) {
  .gm-community-chat { right:8px; bottom:82px; gap:6px; }
  .gm-support-chat { right:8px; bottom:8px; gap:6px; }
  .gm-community-panel,
  .gm-support-panel { width:calc(100vw - 74px); border-radius:14px; }
  .gm-community-panel { height:min(620px,calc(100dvh - 96px)); min-height:380px; }
  .gm-support-panel { height:min(620px,calc(100dvh - 16px)); min-height:380px; }
  .gm-community-launcher { width:52px; min-height:70px; }
  .gm-support-launcher { width:52px; height:52px; }
  .gm-support-launcher > span { display:none; }
}

/* GM v5 — global runner, creator showcase, chat icon polish and responsive pass */
.gm-home[data-runner-world] { position:relative; overflow:visible; }
.gm-logo-runner-world {
  position:absolute;
  inset:0;
  z-index:14;
  pointer-events:none;
  overflow:visible;
}
.gm-logo-runner-world .gm-logo-run-link {
  position:absolute!important;
  left:0!important;
  top:0!important;
  width:76px;
  height:76px;
  pointer-events:auto;
  will-change:transform;
  touch-action:none;
}
.gm-logo-runner-world .gm-logo-runner { width:76px; height:76px; object-fit:contain; }
.gm-logo-runner-zone { display:none!important; }

/* Cleaner outline icons for both independent chat surfaces. */
.gm-chat-logo {
  border:1px solid rgba(255,255,255,.16)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025))!important;
  color:#f1f4f7!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 6px 18px rgba(0,0,0,.22)!important;
}
.gm-chat-logo svg,
.gm-community-launcher svg,
.gm-support-launcher svg {
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.85!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.gm-chat-logo svg path + path,
.gm-community-launcher svg path + path { stroke-width:2.5!important; }
.gm-support-logo { background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025))!important; color:#eef2f6!important; }
.gm-chat-composer textarea { overflow-y:auto; }

/* Homepage creator showcase. */
.gm-creators-section {
  padding:76px 0 92px;
  border-top:1px solid rgba(255,255,255,.075);
  background:linear-gradient(180deg,rgba(255,255,255,.008),rgba(255,255,255,0));
}
.gm-creators-heading { display:flex; gap:22px; align-items:flex-start; margin-bottom:28px; }
.gm-creators-index { padding-top:4px; color:#4d5663; font-size:10px; font-weight:900; letter-spacing:.12em; }
.gm-creators-heading h2 { margin:8px 0 0; color:#fff; font-size:clamp(34px,4vw,54px); line-height:1; letter-spacing:-.045em; }
.gm-creators-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.gm-creator-card {
  position:relative;
  min-width:0;
  min-height:92px;
  display:grid;
  grid-template-columns:54px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  padding:15px 18px;
  border:1px solid rgba(255,255,255,.095);
  border-left:2px solid var(--creator-accent);
  border-radius:14px;
  background:linear-gradient(110deg,color-mix(in srgb,var(--creator-accent) 10%,transparent),rgba(255,255,255,.018) 38%,rgba(255,255,255,.008));
  color:#fff;
  overflow:hidden;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.gm-creator-card:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--creator-accent) 48%,rgba(255,255,255,.1)); background:linear-gradient(110deg,color-mix(in srgb,var(--creator-accent) 15%,transparent),rgba(255,255,255,.026) 42%,rgba(255,255,255,.012)); }
.gm-creator-avatar { width:48px; height:48px; display:grid; place-items:center; overflow:hidden; border:1px solid color-mix(in srgb,var(--creator-accent) 72%,rgba(255,255,255,.15)); border-radius:12px; background:color-mix(in srgb,var(--creator-accent) 15%,#11151a); }
.gm-creator-avatar img { width:100%; height:100%; object-fit:cover; }
.gm-creator-avatar b { color:color-mix(in srgb,var(--creator-accent) 78%,white); font-size:13px; font-weight:900; }
.gm-creator-copy { min-width:0; }
.gm-creator-copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; font-weight:900; }
.gm-creator-copy small { display:block; margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#6f7988; font-size:8px; font-weight:800; text-transform:uppercase; letter-spacing:.055em; }
.gm-creator-number { position:absolute; right:13px; top:8px; color:#3f4854; font-size:7px; font-weight:900; }
.gm-creator-arrow { align-self:end; color:#606a78; font-size:11px; }

/* Admin: creation block for new modders/workshops. */
.gm-create-modder-panel { margin-bottom:28px; }
.gm-create-modder-head h2 { margin:7px 0 6px; }
.gm-create-modder-head p { margin:0 0 20px; color:#858f9d; }
.gm-create-modder-form { gap:14px; }
.gm-create-modder-grid { grid-template-columns:1.2fr 1fr .8fr .55fr!important; }
.gm-create-modder-grid input[type="color"] { min-height:46px; padding:5px; }

/* Keep mobile header functional instead of hiding account/login actions. */
@media (max-width:900px) {
  .site-header { position:sticky; top:0; }
  .nav-wrap {
    position:relative;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr)!important;
    align-items:center!important;
    gap:9px 12px!important;
    min-height:0!important;
    padding:8px 0 10px;
  }
  .gm-brand { grid-column:1; grid-row:1; min-width:0; }
  .brand-mark { font-size:36px!important; }
  .nav-actions { grid-column:2; grid-row:1; justify-content:flex-end; gap:6px!important; min-width:0; }
  .nav-actions .btn { display:inline-flex!important; min-height:36px; padding:7px 10px; border-radius:10px; font-size:10px; }
  .nav-actions form.inline .btn { display:none!important; }
  .lang-switch { flex:0 1 auto; min-width:0; border-radius:11px; }
  .lang-switch a { padding:7px 9px!important; font-size:9px!important; white-space:nowrap; }
  .menu-btn { display:inline-flex!important; min-height:36px; padding:7px 10px!important; border-radius:10px!important; font-size:10px; align-items:center; }
  .site-search { grid-column:1/-1; grid-row:2; order:initial!important; width:100%; max-width:none!important; }
  .site-search input { min-height:39px; }
  .main-nav { top:100%!important; left:10px!important; right:10px!important; z-index:40; }

  .gm-hero-inner {
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:28px!important;
    min-height:0!important;
    padding-top:46px!important;
    padding-bottom:38px!important;
  }
  .gm-hero-copy { width:100%; max-width:620px!important; }
  .gm-hero-featured { width:min(100%,620px)!important; margin:0!important; justify-self:start!important; }
  .gm-featured-cover { max-height:none!important; }
  .gm-featured-cover img { max-height:420px!important; }
  .gm-creators-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gm-create-modder-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
}

@media (max-width:640px) {
  html,body { max-width:100%; overflow-x:hidden; }
  .container { width:calc(100% - 20px)!important; max-width:none!important; }

  .nav-wrap { gap:8px!important; padding-top:7px; }
  .brand-mark { font-size:32px!important; }
  .nav-actions { gap:4px!important; }
  .lang-switch a { padding:7px 7px!important; font-size:8px!important; }
  .nav-actions .btn,.menu-btn { min-height:34px!important; padding:6px 8px!important; font-size:9px!important; }
  .account-chip { width:36px; padding:5px!important; }
  .account-chip img { width:24px; height:24px; margin:0; }
  .account-chip span { display:none!important; }

  .gm-hero { overflow:hidden; }
  .gm-hero-inner { padding-top:30px!important; padding-bottom:28px!important; }
  .gm-hero-copy { max-width:none!important; }
  .gm-hero-copy .eyebrow { font-size:9px; }
  .gm-hero-logo { width:min(62vw,230px)!important; margin:10px 0 8px; }
  .hero-v28-sub,.gm-hero-copy .hero-v28-sub { font-size:clamp(26px,8vw,34px)!important; line-height:1.02; }
  .gm-hero-copy p { max-width:100%; margin:14px 0 0; font-size:13px!important; line-height:1.55; }
  .hero-actions { display:grid!important; grid-template-columns:1fr!important; gap:8px!important; margin-top:20px!important; }
  .hero-actions .btn { width:100%; min-height:46px; }
  .gm-hero-tabs { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:6px!important; margin-top:20px!important; }
  .gm-hero-tabs a { min-width:0; padding:11px 5px!important; font-size:10px!important; text-align:center; }

  .gm-hero-featured { margin-top:2px!important; border-radius:14px!important; }
  .gm-featured-head { padding:13px 13px 10px!important; }
  .gm-featured-head strong { font-size:14px!important; }
  .gm-featured-head > span { font-size:9px!important; }
  .gm-featured-cover img { width:100%!important; max-height:300px!important; object-fit:contain!important; }
  .gm-featured-copy { padding:14px!important; }
  .gm-featured-copy h2 { font-size:23px!important; }
  .gm-featured-copy p { min-height:0!important; font-size:11px!important; -webkit-line-clamp:2!important; }
  .gm-featured-controls { grid-template-columns:38px 1fr 38px!important; padding:8px 9px!important; }
  .gm-featured-controls > button { width:38px!important; height:32px!important; }
  .gm-featured-dots { gap:4px!important; }
  .gm-featured-dots button { width:6px!important; height:6px!important; }
  .gm-featured-dots button.active { width:18px!important; }

  .gm-home-stats { grid-template-columns:repeat(2,minmax(0,1fr))!important; margin:14px auto 48px!important; }
  .gm-home-stats > div { min-height:76px!important; padding:13px 15px!important; }
  .gm-home-stats strong { font-size:22px!important; }
  .gm-home-stats span { font-size:8px!important; }
  .gm-market { margin-top:0!important; }
  .gm-section-head { align-items:flex-start!important; }
  .gm-section-head h2 { font-size:28px!important; }
  .gm-home-grid { grid-template-columns:1fr!important; gap:10px!important; }
  .gm-home-card { min-height:180px!important; }

  .gm-creators-section { padding:54px 0 64px; }
  .gm-creators-heading { gap:12px; margin-bottom:20px; }
  .gm-creators-heading h2 { font-size:34px; }
  .gm-creators-grid { grid-template-columns:1fr; gap:8px; }
  .gm-creator-card { min-height:78px; grid-template-columns:46px minmax(0,1fr) auto; padding:12px 13px; }
  .gm-creator-avatar { width:42px; height:42px; }

  .marketplace-layout { grid-template-columns:1fr!important; }
  .market-sidebar { position:static!important; width:100%; }
  .market-view-tabs { width:100%!important; overflow-x:auto; flex-wrap:nowrap!important; scrollbar-width:none; }
  .market-view-tabs::-webkit-scrollbar { display:none; }
  .market-view-tabs a { flex:0 0 auto; }
  .filters { grid-template-columns:1fr!important; }
  .cards-grid,.cards-grid.compact { grid-template-columns:1fr!important; }
  .card-cover-natural { max-height:none!important; }

  .admin-page { padding-top:22px!important; }
  .admin-nav { flex-wrap:nowrap!important; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; }
  .admin-nav::-webkit-scrollbar { display:none; }
  .admin-nav a { flex:0 0 auto; }
  .admin-form,.form-grid,.form-grid.two,.form-grid.four,.gm-create-modder-grid { grid-template-columns:1fr!important; }
  .panel { padding:15px!important; }
  .translation-tabbar { overflow-x:auto; padding:0 8px!important; }
  .translation-tabbar button { min-width:116px!important; padding:13px 12px!important; }
  .translation-panel { padding:12px!important; }

  /* Mobile chat panels occupy the screen cleanly and no longer squeeze beside their launchers. */
  .gm-community-chat { right:8px!important; bottom:72px!important; }
  .gm-support-chat { right:8px!important; bottom:8px!important; }
  .gm-community-panel,.gm-support-panel {
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    width:auto!important;
    min-width:0!important;
    height:min(72dvh,620px)!important;
    min-height:360px!important;
    border-radius:14px!important;
  }
  .gm-community-panel { bottom:8px!important; }
  .gm-support-panel { bottom:8px!important; }
  .gm-chat-system.community-open .gm-community-launcher,
  .gm-chat-system.community-open .gm-support-launcher,
  .gm-chat-system.support-open .gm-community-launcher,
  .gm-chat-system.support-open .gm-support-launcher { display:none!important; }
  .gm-community-launcher { width:48px!important; min-height:64px!important; }
  .gm-support-launcher { width:48px!important; height:48px!important; }
  .gm-chat-header { min-height:58px!important; padding:9px 10px!important; }
  .gm-chat-logo { width:34px!important; height:34px!important; flex-basis:34px!important; border-radius:9px!important; }
  .gm-chat-brand strong { font-size:12px!important; }
  .gm-chat-brand span { max-width:220px; font-size:8px!important; }
  .gm-chat-messages { padding:10px 9px 14px!important; }
  .gm-chat-message { grid-template-columns:31px minmax(0,1fr)!important; gap:7px!important; }
  .gm-chat-avatar { width:31px!important; height:31px!important; }
  .gm-chat-composer { grid-template-columns:minmax(0,1fr) 38px!important; padding:8px!important; }

  .gm-logo-runner-world { display:none!important; }
}

@media (max-width:430px) {
  .nav-wrap { grid-template-columns:44px minmax(0,1fr)!important; }
  .gm-brand { width:44px; overflow:hidden; }
  .brand-mark { font-size:30px!important; }
  .nav-actions { justify-content:flex-end; }
  .lang-switch a { padding:6px 6px!important; font-size:7.5px!important; }
  .nav-actions > .btn,.menu-btn { padding:6px 7px!important; }
  .gm-hero-tabs { grid-template-columns:1fr!important; }
  .gm-hero-tabs a { min-height:42px; display:grid; place-items:center; }
  .gm-home-stats { border-radius:12px!important; }
  .gm-section-head { display:block!important; }
  .gm-section-head .link { display:inline-block; margin-top:10px; }
  .mod-showcase-copy h1 { overflow-wrap:anywhere; }
  .mod-quick-stats { grid-template-columns:1fr 1fr!important; }
  .mod-content-tabs { max-width:100vw; }
}

/* GM v6 — content homepage, clean chat icons, anti-spam notices, external video. */
.gm-chat-logo,
.gm-support-logo {
  width:44px!important;
  height:44px!important;
  flex:0 0 44px!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#f2f5f8!important;
  overflow:visible!important;
}
.gm-chat-logo svg,
.gm-support-logo svg {
  display:block!important;
  position:static!important;
  width:34px!important;
  height:34px!important;
  margin:auto!important;
  overflow:visible!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.gm-community-launcher svg { width:27px!important; height:27px!important; display:block!important; position:static!important; overflow:visible!important; }
.gm-support-launcher svg { width:31px!important; height:31px!important; display:block!important; position:static!important; overflow:visible!important; }

.gm-chat-private-alert {
  margin:0 10px 9px;
  padding:10px 11px;
  border:1px solid rgba(255,83,83,.48);
  border-radius:9px;
  background:rgba(112,18,24,.24);
  color:#ff7c82;
  font-size:10px;
  font-weight:800;
  line-height:1.45;
  box-shadow:inset 3px 0 0 #ff555f;
}
.gm-chat-private-alert[hidden] { display:none!important; }
.gm-chat-composer textarea:disabled { opacity:.55; cursor:not-allowed; }

.gm-home-news-section {
  padding:78px 0 88px;
  border-top:1px solid rgba(255,255,255,.075);
}
.gm-home-block-heading {
  display:grid;
  grid-template-columns:26px minmax(0,1fr) auto;
  align-items:end;
  gap:18px;
  margin-bottom:30px;
}
.gm-home-block-index { align-self:start; padding-top:4px; color:#4d5663; font-size:10px; font-weight:900; letter-spacing:.12em; }
.gm-home-block-heading h2 { margin:8px 0 0; color:#fff; font-size:clamp(35px,4vw,55px); line-height:1; letter-spacing:-.045em; }
.gm-home-block-link { color:#dce2e9; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }
.gm-home-news-grid {
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(280px,.72fr);
  grid-template-rows:1fr 1fr;
  gap:12px;
}
.gm-home-news-card { min-width:0; min-height:220px; }
.gm-home-news-card.is-main { grid-row:1 / span 2; min-height:455px; }
.gm-home-news-cover {
  position:relative;
  display:block;
  height:100%;
  min-height:inherit;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.11);
  border-radius:14px;
  background:#090b0e;
}
.gm-home-news-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .35s ease; }
.gm-home-news-cover:hover img { transform:scale(1.025); }
.gm-home-news-shade { position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.05) 18%,rgba(0,0,0,.28) 52%,rgba(0,0,0,.94) 100%); }
.gm-home-news-content { position:absolute; left:0; right:0; bottom:0; z-index:2; padding:22px; }
.gm-home-news-card.is-main .gm-home-news-content { padding:28px; }
.gm-home-news-meta { display:flex; align-items:center; gap:10px; margin-bottom:10px; color:#9ba5b2; font-size:8px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.gm-home-news-meta span { color:#fff; }
.gm-home-news-content h3 { max-width:760px; margin:0; color:#fff; font-size:clamp(20px,2.1vw,34px); line-height:1.04; letter-spacing:-.035em; }
.gm-home-news-card:not(.is-main) .gm-home-news-content h3 { font-size:20px; }
.gm-home-news-content p { max-width:720px; margin:10px 0 0; color:#a9b1bc; font-size:11px; line-height:1.5; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
.gm-home-news-content em { display:block; margin-top:13px; color:#fff; font-size:8px; font-style:normal; font-weight:900; text-transform:uppercase; letter-spacing:.06em; }

.gm-platform-section { padding:64px 0 96px; }
.gm-platform-card {
  display:grid;
  grid-template-columns:minmax(280px,.9fr) minmax(0,1.2fr);
  gap:58px;
  padding:42px 48px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:17px;
  background:linear-gradient(135deg,rgba(255,255,255,.025),rgba(255,255,255,.008));
}
.gm-platform-copy h2 { max-width:480px; margin:12px 0 14px; color:#fff; font-size:clamp(34px,4vw,54px); line-height:.98; letter-spacing:-.045em; }
.gm-platform-copy p { max-width:560px; margin:0; color:#808a97; font-size:12px; line-height:1.7; white-space:pre-line; }
.gm-platform-features { display:grid; align-content:center; }
.gm-platform-features > div { display:grid; grid-template-columns:30px minmax(150px,.65fr) minmax(0,1fr); gap:16px; padding:17px 0; border-bottom:1px solid rgba(255,255,255,.08); }
.gm-platform-features > div:last-child { border-bottom:0; }
.gm-platform-features span { color:#58616d; font-size:8px; font-weight:900; }
.gm-platform-features strong { color:#e9edf2; font-size:12px; }
.gm-platform-features p { margin:0; color:#707a87; font-size:9px; line-height:1.55; }

.settings-copy-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.settings-copy-card { padding:16px; border:1px solid rgba(255,255,255,.09); border-radius:12px; background:rgba(255,255,255,.018); }
.settings-copy-card h3 { margin:0 0 13px; }

.modder-page-actions { display:flex; flex-wrap:wrap; gap:9px; }

.video-source-switcher { display:flex; gap:7px; margin:14px 0; }
.video-source-switcher button { min-height:38px; padding:8px 13px; border:1px solid rgba(255,255,255,.11); border-radius:9px; background:#11151a; color:#8e98a5; font:inherit; font-size:10px; font-weight:800; cursor:pointer; }
.video-source-switcher button.active { border-color:rgba(255,255,255,.3); background:#e9edf1; color:#090b0e; }
.gm-external-video-list { margin-top:18px; }
.gm-external-video { position:relative; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:14px; background:#050608; aspect-ratio:16/9; }
.gm-external-video iframe { display:block; width:100%; height:100%; border:0; }
.gm-external-video > span { position:absolute; top:10px; left:10px; padding:5px 7px; border-radius:6px; background:rgba(0,0,0,.72); color:#fff; font-size:8px; font-weight:900; text-transform:uppercase; letter-spacing:.05em; pointer-events:none; }
.gm-external-video-link { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:84px; padding:18px; border:1px solid rgba(255,255,255,.1); border-radius:12px; background:#0b0e12; color:#fff; }
.gm-external-video-link span { color:#8a94a1; font-size:10px; }

@media (max-width:900px) {
  .gm-home-news-grid { grid-template-columns:1fr 1fr; grid-template-rows:auto; }
  .gm-home-news-card.is-main { grid-column:1/-1; grid-row:auto; min-height:390px; }
  .gm-home-news-card:not(.is-main) { min-height:260px; }
  .gm-platform-card { grid-template-columns:1fr; gap:28px; padding:32px; }
  .settings-copy-grid { grid-template-columns:1fr; }
}

@media (max-width:640px) {
  .gm-chat-logo,.gm-support-logo { width:38px!important; height:38px!important; flex-basis:38px!important; }
  .gm-chat-logo svg,.gm-support-logo svg { width:30px!important; height:30px!important; }
  .gm-home-news-section { padding:54px 0 58px; }
  .gm-home-block-heading { grid-template-columns:20px minmax(0,1fr); gap:10px; align-items:start; }
  .gm-home-block-heading h2 { font-size:34px; }
  .gm-home-block-link { grid-column:2; margin-top:4px; }
  .gm-home-news-grid { grid-template-columns:1fr; }
  .gm-home-news-card.is-main,.gm-home-news-card:not(.is-main) { min-height:290px; }
  .gm-home-news-content,.gm-home-news-card.is-main .gm-home-news-content { padding:18px; }
  .gm-home-news-content h3,.gm-home-news-card:not(.is-main) .gm-home-news-content h3 { font-size:24px; }
  .gm-platform-section { padding:34px 0 64px; }
  .gm-platform-card { padding:23px 20px; border-radius:14px; }
  .gm-platform-copy h2 { font-size:36px; }
  .gm-platform-features > div { grid-template-columns:28px 1fr; gap:8px 12px; }
  .gm-platform-features p { grid-column:2; }
  .video-source-switcher { display:grid; grid-template-columns:1fr 1fr; }
}
.gm-chat-brand > .gm-chat-logo {
  display:grid!important;
  place-items:center!important;
  margin-top:0!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  font-size:initial!important;
}

/* v7: video tab, system moderation messages and mute controls */
.mod-video-stage{display:grid;gap:18px;max-width:100%}
.mod-video-stage .mod-video-list{margin-top:0}
.gm-external-video-unsupported{display:grid;gap:7px;padding:18px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:#0b0e12;color:#fff}
.gm-external-video-unsupported strong{font-size:13px}
.gm-external-video-unsupported span{color:#8f98a5;font-size:11px;line-height:1.5}

.gm-chat-message.is-system .gm-system-avatar{display:grid;place-items:center;border:1px solid rgba(255,83,83,.5);background:rgba(164,31,31,.20);color:#ff7777;font-weight:1000;font-size:15px}
.gm-chat-message.is-system .gm-chat-meta strong{color:#ff6d6d}
.gm-chat-message.is-system .gm-chat-message-body>p{border-color:rgba(255,72,72,.5)!important;background:rgba(104,18,18,.26)!important;color:#ffb8b8!important;box-shadow:inset 3px 0 0 #ff4d4d}
.gm-chat-message.is-system.is-info .gm-system-avatar{border-color:rgba(123,169,220,.45);background:rgba(35,74,118,.22);color:#9fc7f4}
.gm-chat-message.is-system.is-info .gm-chat-meta strong{color:#9fc7f4}
.gm-chat-message.is-system.is-info .gm-chat-message-body>p{border-color:rgba(123,169,220,.4)!important;background:rgba(35,74,118,.18)!important;color:#c9def6!important;box-shadow:inset 3px 0 0 #78a9df}
.gm-chat-private-alert{display:none!important}

.badge.danger{border-color:rgba(255,77,77,.45);color:#ffb3b3;background:rgba(255,77,77,.10)}
.admin-mute-panel{display:grid;gap:14px}
.admin-mute-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.admin-mute-head h2{margin:0 0 4px}
.admin-mute-head p{margin:0}
.admin-mute-actions{display:grid;gap:10px}
.admin-mute-form{display:grid;grid-template-columns:minmax(150px,.35fr) minmax(260px,1fr) auto auto;gap:10px;align-items:end}
.admin-mute-form label{display:grid;gap:7px}
.admin-mute-form select,.admin-mute-form input{width:100%;background:#0d121a;border:1px solid var(--gm-border,#2a3038);border-radius:10px;color:#fff;padding:10px 12px}

@media(max-width:760px){
  .admin-mute-head{flex-direction:column}
  .admin-mute-form{grid-template-columns:1fr}
  .gm-video-player video,.gm-external-video{max-height:none}
}
