:root {
  --bg: #eef2ed;
  --surface: #ffffff;
  --surface-soft: #f5f7f4;
  --surface-dark: #121914;
  --surface-dark-2: #1b251d;
  --text: #172019;
  --text-soft: #59645b;
  --text-faint: #7f8a81;
  --line: #d5ddd4;
  --line-strong: #bbc7bb;
  --moss: #2f7d45;
  --moss-dark: #205b32;
  --leaf: #82b84f;
  --gold: #d49a34;
  --gold-soft: #fff2d2;
  --red: #b83c35;
  --red-soft: #fff0ee;
  --blue: #397a9d;
  --blue-soft: #e9f5fa;
  --shadow-sm: 0 2px 10px rgba(18, 33, 21, 0.08);
  --shadow-md: 0 14px 36px rgba(18, 33, 21, 0.14);
  --header-height: 64px;
  --content-width: 1180px;
  --radius: 6px;
  --green: var(--moss);
  --green-dark: var(--moss-dark);
  --green-light: var(--leaf);
  --bg-primary: var(--bg);
  --bg-card: var(--surface);
  --bg-card-hover: var(--surface-soft);
  --text-primary: var(--text);
  --text-secondary: var(--text-soft);
  --text-muted: var(--text-faint);
  --border: var(--line);
  --border-light: var(--line);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  color: #f7faf7;
  background: rgba(15, 22, 17, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.site-nav {
  width: min(var(--content-width), calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.08rem;
}

.brand-cube {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: linear-gradient(180deg, var(--leaf) 0 30%, #79583b 30% 100%);
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.14);
}

.brand-cube::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-links a,
.site-nav-more > summary {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  color: #c9d1ca;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
}

.site-nav-links a:hover,
.site-nav-links a.active,
.site-nav-more[open] > summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.site-nav-more {
  position: relative;
}

.site-nav-more > summary {
  list-style: none;
  gap: 5px;
}

.site-nav-more > summary::-webkit-details-marker {
  display: none;
}

.site-nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 7px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.site-nav-menu a {
  width: 100%;
  color: var(--text-soft);
  gap: 9px;
}

.site-nav-menu a:hover {
  color: var(--moss-dark);
  background: #edf5ee;
}

.site-nav-spacer {
  flex: 1;
}

.site-user-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-account {
  position: relative;
}

.nav-account > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 8px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  cursor: pointer;
  list-style: none;
}

.nav-account > summary::-webkit-details-marker {
  display: none;
}

.player-head {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
  image-rendering: pixelated;
  background: #dfe8df url("/assets/default-player-avatar.png") center / cover no-repeat;
  color: transparent;
}

.player-head.avatar-fallback {
  box-shadow: inset 0 0 0 1px rgba(21, 32, 24, 0.12);
}

.nav-account-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  padding: 7px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.nav-account-menu a,
.nav-account-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  color: var(--text-soft);
  background: transparent;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.88rem;
}

.nav-account-menu a:hover,
.nav-account-menu button:hover {
  color: var(--moss-dark);
  background: #edf5ee;
}

.nav-toggle-v2 {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.icon-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-soft);
  background: var(--surface);
  cursor: pointer;
}

.icon-button:hover {
  color: var(--moss);
  border-color: var(--moss);
}

.button,
.btn-download,
.post-btn,
.admin-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #fff;
  background: var(--moss);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.button:hover,
.btn-download:hover,
.post-btn:hover,
.admin-btn:hover {
  background: var(--moss-dark);
  transform: translateY(-1px);
}

.button.secondary,
.button.outline,
.btn-download.outline {
  color: var(--text);
  border-color: var(--line-strong);
  background: var(--surface);
}

.button.secondary:hover,
.button.outline:hover,
.btn-download.outline:hover {
  color: var(--moss-dark);
  border-color: var(--moss);
  background: #edf5ee;
}

.button.danger,
.admin-btn.danger {
  color: var(--red);
  border-color: #e7b9b5;
  background: var(--red-soft);
}

.button.danger:hover,
.admin-btn.danger:hover {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.button.small,
.admin-btn.small {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.8rem;
}

.button:disabled,
.icon-button:disabled,
.admin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.home-hero-v2 {
  position: relative;
  min-height: min(720px, calc(100svh - 150px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(9, 16, 12, 0.92) 0%, rgba(9, 16, 12, 0.72) 40%, rgba(9, 16, 12, 0.14) 76%),
    linear-gradient(0deg, rgba(9, 16, 12, 0.58), transparent 48%),
    url("/assets/zero-hero-v3.png");
  background-position: center, center, center calc(54% + var(--hero-parallax-y, 0px));
  background-size: cover, cover, cover;
}

.home-hero-inner {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0 72px;
  opacity: var(--hero-content-opacity, 1);
  transform: translate3d(0, var(--hero-content-shift, 0px), 0);
  will-change: transform, opacity;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #cae8c5;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--leaf);
}

.home-hero-v2 h1 {
  margin: 0;
  color: #fff;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 7rem;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.24);
}

.hero-copy {
  max-width: 590px;
  margin: 22px 0 0;
  color: #e4e9e4;
  font-size: 1.12rem;
}

.hero-quick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-quick-row .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(14, 21, 16, 0.42);
}

.hero-quick-row .button.secondary:hover {
  border-color: #fff;
  background: rgba(14, 21, 16, 0.72);
}

.server-address {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(9, 15, 11, 0.66);
  color: #fff;
  cursor: pointer;
}

.server-address strong {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 0.93rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa59b;
  box-shadow: 0 0 0 4px rgba(154, 165, 155, 0.15);
}

.status-dot.online {
  background: #70d585;
  box-shadow: 0 0 0 4px rgba(112, 213, 133, 0.16);
}

.motion-ready .home-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .home-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.home-stats-band {
  background: var(--surface-dark);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-stats-inner {
  width: min(var(--content-width), calc(100% - 40px));
  min-height: 126px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.home-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.home-stat > div {
  min-width: 0;
}

.home-stat:first-child {
  padding-left: 0;
}

.home-stat:last-child {
  border-right: 0;
}

.home-stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  color: #cce8c4;
  border: 1px solid rgba(204, 232, 196, 0.26);
  border-radius: 4px;
  background: rgba(130, 184, 79, 0.1);
}

.home-stat-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.home-stat strong {
  display: block;
  min-width: 3ch;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 2rem;
  line-height: 1.1;
  white-space: nowrap;
}

.form-field input.sr-only {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
}

.home-stat strong span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
}

.home-stat strong small {
  color: #cbd5cc;
  font-size: 0.72em;
}

.home-stat > div > span {
  display: block;
  margin-top: 4px;
  color: #98a69a;
  font-size: 0.78rem;
}

.section-v2 {
  padding: 72px 20px;
}

.section-v2.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-inner-v2 {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-eyebrow {
  margin: 0 0 6px;
  color: var(--moss);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-heading-row h2,
.section-v2 > h2 {
  margin: 0;
  color: var(--text);
  font-size: 2.15rem;
  line-height: 1.22;
}

.section-description {
  max-width: 640px;
  margin: 7px 0 0;
  color: var(--text-soft);
}

.announcement-list {
  border-top: 1px solid var(--line);
}

.announcement-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.announcement-row time {
  color: var(--text-faint);
  font-size: 0.82rem;
}

.announcement-row h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.announcement-row p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.9rem;
  white-space: pre-line;
}

.announcement-pin {
  padding: 2px 7px;
  color: #79540f;
  border: 1px solid #e6c880;
  border-radius: 3px;
  background: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 800;
}

.home-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: start;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.feature-item {
  position: relative;
  min-height: 155px;
  padding: 24px;
  background: var(--surface);
  text-decoration: none;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.feature-item:hover {
  background: #f0f6f0;
}

.feature-item .feature-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--moss);
  border-radius: 4px;
  background: #e8f2e8;
}

.feature-item h3 {
  margin: 16px 0 5px;
  font-size: 1rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.feature-item.external-home-link {
  padding-right: 66px;
}

.feature-item.community-link {
  background: #f3f8fb;
}

.feature-item.community-link:hover {
  background: #e8f3f8;
}

.feature-item.community-link .feature-icon {
  color: var(--blue);
  background: var(--blue-soft);
}

.feature-item.recharge-link {
  background: #fff9eb;
}

.feature-item.recharge-link:hover {
  background: #fff2d2;
}

.feature-item.recharge-link .feature-icon {
  color: #94681b;
  background: var(--gold-soft);
}

.feature-item-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.74);
  transition: color 180ms ease, transform 180ms ease;
}

.feature-item-arrow svg {
  width: 17px;
  height: 17px;
}

.external-home-link:hover .feature-item-arrow {
  color: var(--text);
  transform: translate3d(2px, -2px, 0);
}

.feature-meta {
  display: block;
  margin-top: 3px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 750;
}

.player-check-tool {
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tool-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tool-heading h3 {
  margin: 0;
  font-size: 1.1rem;
}

.tool-heading p {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.input-row {
  display: flex;
  gap: 8px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.text-input,
.form-field input,
.form-field textarea,
.form-field select,
.admin-input,
.admin-textarea,
.admin-select {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: 0;
  background: var(--surface);
}

.form-field textarea,
.admin-textarea {
  min-height: 120px;
  resize: vertical;
}

.text-input:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.admin-input:focus,
.admin-textarea:focus,
.admin-select:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(47, 125, 69, 0.12);
}

.tool-result {
  min-height: 28px;
  margin: 13px 0 0;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.tool-result.ok {
  color: var(--moss-dark);
}

.tool-result.error {
  color: var(--red);
}

.download-band {
  color: #fff;
  background: var(--surface-dark-2);
}

.download-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
}

.download-item-v2 {
  padding: 27px;
  background: #1a241c;
}

.download-item-v2 h3 {
  margin: 13px 0 5px;
  color: #fff;
  font-size: 1rem;
}

.download-item-v2 p {
  min-height: 48px;
  margin: 0 0 18px;
  color: #a9b5aa;
  font-size: 0.84rem;
}

.download-item-v2 .feature-icon {
  color: #cae8c5;
}

.site-footer-v2 {
  color: #aab4ab;
  background: #0d120e;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
  width: min(var(--content-width), calc(100% - 40px));
  min-height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  color: #fff;
  font-weight: 850;
}

.footer-copy {
  margin: 5px 0 0;
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c6cec7;
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: #fff;
}

.page-hero-v2 {
  padding: 58px 20px 42px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 20, 15, 0.97), rgba(13, 20, 15, 0.76)),
    url("/pvp_images/01_spawn_point.webp") center 55% / cover;
}

.page-hero-inner {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.page-hero-v2 h1 {
  margin: 0;
  color: #fff;
  font-size: 2.7rem;
  line-height: 1.2;
}

.page-hero-v2 p {
  max-width: 680px;
  margin: 10px 0 0;
  color: #cdd6ce;
}

.page-shell-v2 {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.forum-layout-v2 {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.forum-sidebar-v2 {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.forum-sidebar-v2 h2 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
}

.forum-category-list {
  display: grid;
  gap: 4px;
}

.forum-category-list button {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--text-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.forum-category-list button:hover,
.forum-category-list button.active {
  color: var(--moss-dark);
  border-color: #c7d9c8;
  background: #e8f2e8;
}

.forum-main-v2 {
  min-width: 0;
}

.forum-toolbar-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.forum-toolbar-v2 h2 {
  margin: 0;
  font-size: 1.35rem;
}

.forum-toolbar-v2 .forum-search {
  position: relative;
  flex: 1;
  max-width: 350px;
  margin-left: auto;
}

.forum-search input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px 8px 38px;
  border: 1px solid var(--line);
  border-radius: 5px;
  outline: 0;
  background: var(--surface);
}

.forum-search .icon {
  position: absolute;
  top: 11px;
  left: 12px;
  color: var(--text-faint);
}

.forum-post-list-v2 {
  border-top: 1px solid var(--line-strong);
}

.forum-post-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 120px;
  gap: 15px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.forum-post-row:hover {
  background: rgba(255, 255, 255, 0.5);
}

.forum-post-row .player-head {
  width: 44px;
  height: 44px;
}

.forum-post-main {
  min-width: 0;
}

.forum-post-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.forum-post-title a {
  overflow: hidden;
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-post-title a:hover {
  color: var(--moss-dark);
}

.forum-post-meta {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.forum-author-link {
  color: var(--moss-dark);
  text-decoration: none;
  font-weight: 700;
}

.forum-post-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  color: var(--text-faint);
  text-align: center;
  font-size: 0.75rem;
}

.forum-post-stats strong {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.category-badge,
.status-badge,
.pin-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #c9d8ca;
  border-radius: 3px;
  color: var(--moss-dark);
  background: #edf5ee;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 800;
}

.category-badge.report,
.category-badge.appeal {
  color: #8f322d;
  border-color: #e7bbb7;
  background: var(--red-soft);
}

.category-badge.feedback {
  color: #28657f;
  border-color: #b8d9e7;
  background: var(--blue-soft);
}

.category-badge.guide,
.pin-badge {
  color: #76500b;
  border-color: #e7ca8b;
  background: var(--gold-soft);
}

.status-badge.resolved {
  color: var(--moss-dark);
}

.status-badge.rejected {
  color: var(--red);
  border-color: #e7bbb7;
  background: var(--red-soft);
}

.forum-empty,
.loading-state,
.error-state {
  padding: 52px 20px;
  color: var(--text-faint);
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.modal-backdrop-v2 {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 12, 9, 0.74);
}

.modal-v2 {
  width: min(920px, 100%);
  max-height: calc(100svh - 40px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.modal-v2.narrow {
  width: min(430px, 100%);
}

.modal-header-v2 {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.modal-header-v2 h2 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-body-v2 {
  padding: 22px;
}

.modal-footer-v2 {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.form-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-v2 .wide {
  grid-column: 1 / -1;
}

.editor-shell {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
}

.editor-toolbar {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.editor-toolbar-group {
  display: flex;
  gap: 3px;
  padding-right: 8px;
  margin-right: 4px;
  border-right: 1px solid var(--line);
}

.editor-toolbar-group:last-child {
  border-right: 0;
}

.editor-toolbar button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
}

.editor-toolbar button:hover,
.editor-toolbar button.active {
  color: var(--moss-dark);
  border-color: #cbd8cc;
  background: #e8f2e8;
}

.editor-textarea {
  display: block;
  width: 100%;
  min-height: 270px;
  padding: 16px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: var(--surface);
  line-height: 1.75;
  resize: vertical;
}

.editor-preview {
  min-height: 270px;
  padding: 16px;
  background: var(--surface);
}

.editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px 10px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  background: var(--surface-soft);
  font-size: 0.76rem;
}

.upload-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-soft);
  background: var(--surface);
  cursor: pointer;
}

.template-note {
  padding: 11px 13px;
  color: #684a14;
  border: 1px solid #e5cb91;
  border-radius: 4px;
  background: var(--gold-soft);
  font-size: 0.8rem;
}

.rendered-content {
  color: var(--text);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.rendered-content p {
  margin: 0 0 14px;
}

.rendered-content h2,
.rendered-content h3 {
  margin: 24px 0 10px;
  line-height: 1.35;
}

.rendered-content blockquote {
  margin: 16px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--moss);
  background: #edf5ee;
}

.rendered-content code {
  padding: 2px 5px;
  color: #794b22;
  border: 1px solid #e0d4c8;
  border-radius: 3px;
  background: #f8f2ec;
  font-family: Consolas, monospace;
  font-size: 0.88em;
}

.rendered-content img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 720px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.rendered-content a {
  color: var(--moss-dark);
}

.post-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 30px;
  align-items: start;
}

.post-detail-main {
  min-width: 0;
}

.post-detail-head {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}

.post-detail-head h1 {
  margin: 12px 0 12px;
  font-size: 2.05rem;
  line-height: 1.35;
}

.post-author-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.post-content-v2 {
  min-height: 200px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.vote-actions {
  display: flex;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.vote-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-soft);
  background: var(--surface);
  cursor: pointer;
}

.vote-button:hover,
.vote-button.active {
  color: var(--moss-dark);
  border-color: var(--moss);
  background: #edf5ee;
}

.comment-section h2 {
  margin: 30px 0 8px;
  font-size: 1.15rem;
}

.comment-item-v2 {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.comment-head-v2 {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.comment-head-v2 time {
  color: var(--text-faint);
  font-size: 0.76rem;
}

.reply-box-v2 {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reply-box-v2 textarea {
  width: 100%;
  min-height: 110px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  resize: vertical;
}

.reply-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.post-aside-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.post-aside-card .player-head {
  width: 68px;
  height: 68px;
}

.post-aside-card h3 {
  margin: 12px 0 0;
}

.post-aside-card p {
  margin: 4px 0 16px;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.profile-hero-v2 {
  padding: 48px 20px;
  color: #fff;
  background: var(--surface-dark-2);
}

.profile-hero-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.profile-hero-inner .player-head {
  width: 92px;
  height: 92px;
  border: 3px solid rgba(255, 255, 255, 0.22);
}

.profile-hero-inner h1 {
  margin: 0;
  color: #fff;
  font-size: 2.6rem;
}

.profile-hero-inner p {
  margin: 5px 0 0;
  color: #abb8ad;
}

.profile-shell-v2 {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-fact {
  padding: 18px;
  border-right: 1px solid var(--line);
}

.profile-fact:last-child {
  border-right: 0;
}

.profile-fact span {
  display: block;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.profile-fact strong {
  display: block;
  margin-top: 4px;
  font-size: 0.94rem;
}

.profile-avatar-manager {
  margin-top: 18px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar-manager h2 {
  margin: 0;
  font-size: 1rem;
}

.profile-avatar-manager p {
  margin: 5px 0 0;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.profile-avatar-manager-controls {
  min-width: 260px;
}

.profile-avatar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.profile-avatar-manager .profile-avatar-status {
  min-height: 20px;
  margin-top: 5px;
  text-align: right;
}

.profile-avatar-manager .profile-avatar-status.error {
  color: var(--red);
}

.profile-posts {
  margin-top: 32px;
}

.profile-posts h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.profile-post-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.profile-post-row a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.profile-post-row time {
  color: var(--text-faint);
  font-size: 0.78rem;
}

.admin-page-v2 {
  min-height: 100svh;
  background: #edf0ec;
}

.admin-shell-v2 {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100svh - var(--header-height));
}

.admin-sidebar-v2 {
  padding: 24px 16px;
  color: #d9e0da;
  background: var(--surface-dark-2);
}

.admin-sidebar-v2 h2 {
  margin: 0 10px 18px;
  color: #fff;
  font-size: 0.92rem;
}

.admin-nav-v2 {
  display: grid;
  gap: 4px;
}

.admin-nav-v2 button {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #aeb9b0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-nav-v2 button:hover,
.admin-nav-v2 button.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.admin-main-v2 {
  min-width: 0;
  padding: 28px;
}

.admin-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 1.45rem;
}

.admin-page-head p {
  margin: 4px 0 0;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.admin-metric {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-metric span {
  display: block;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.admin-metric strong {
  display: block;
  margin-top: 5px;
  font-size: 1.5rem;
}

.admin-panel-v2 {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-panel-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 1rem;
}

.admin-panel-body {
  padding: 16px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table-v2,
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table-v2 th,
.admin-table-v2 td,
.admin-table th,
.admin-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table-v2 th,
.admin-table th {
  color: var(--text-faint);
  background: var(--surface-soft);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

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

.admin-form-grid .wide {
  grid-column: 1 / -1;
}

.announcement-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.announcement-admin-item h3 {
  margin: 0 0 4px;
  font-size: 0.94rem;
}

.announcement-admin-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.admin-login-v2 {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    linear-gradient(90deg, rgba(12, 18, 14, 0.92), rgba(12, 18, 14, 0.62)),
    url("/assets/zero-hero-v3.png") center / cover;
}

.admin-login-box {
  width: min(410px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.admin-login-box h1 {
  margin: 0;
  font-size: 1.4rem;
}

.admin-login-box p {
  margin: 6px 0 20px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.toast-v2,
.toast {
  position: fixed;
  z-index: 5000;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 12px 15px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: #172019;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 0.85rem;
}

.toast-v2.show,
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-v2.error {
  background: #722b27;
}

/* Legacy content pages and preserved Wiki content */
body.wiki-page,
body.command-page,
body.fd-page {
  background: var(--bg) !important;
}

body > .header:not(.site-header) {
  display: none !important;
}

body > .footer:not(.site-footer-v2) {
  display: none !important;
}

body > .hero:not(.home-hero-v2) {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: end;
  padding: 58px 20px 40px !important;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13, 20, 15, 0.95), rgba(13, 20, 15, 0.7)),
    url("/pvp_images/01_spawn_point.webp") center 55% / cover !important;
}

body > .hero:not(.home-hero-v2) .hero-content {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  text-align: left !important;
}

body > .hero:not(.home-hero-v2) h1,
body > .hero:not(.home-hero-v2) .subtitle {
  color: #fff !important;
}

body > .hero:not(.home-hero-v2) .subtitle {
  color: #cdd6ce !important;
}

body > .section,
body > section.section {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
}

.card,
.system-detail,
.cmd-category,
.note-box,
.tip-box {
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}

.wiki-local-nav {
  top: var(--header-height) !important;
  border-color: var(--line) !important;
  background: var(--surface) !important;
}

.wiki-doc-layout {
  width: min(1380px, 100%) !important;
  min-height: calc(100svh - var(--header-height));
  margin: 0 auto !important;
  background: var(--surface) !important;
}

.wiki-sidebar {
  top: var(--header-height) !important;
  height: calc(100svh - var(--header-height)) !important;
  border-color: var(--line) !important;
  background: #f3f6f2 !important;
}

.wiki-sidebar-group button,
.wiki-sidebar-items a {
  border-radius: 4px !important;
}

.wiki-sidebar-items a.active {
  color: var(--moss-dark) !important;
  background: #e3eee3 !important;
}

.wiki-main {
  max-width: 920px !important;
  padding: 38px 52px 80px !important;
}

.wiki-article h1 {
  color: var(--text) !important;
  font-size: 2.8rem !important;
  line-height: 1.15 !important;
}

.wiki-article h2 {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  color: var(--text) !important;
}

.wiki-article h3 {
  color: var(--text) !important;
}

.wiki-article p,
.wiki-article li,
.wiki-main p,
.wiki-main li {
  color: var(--text-soft) !important;
}

.wiki-article code,
.cmd-table code {
  border-radius: 3px !important;
  color: #70451f !important;
  background: #f6eee6 !important;
}

.wiki-info-row,
.wiki-grid,
.wiki-steps {
  gap: 10px !important;
}

.wiki-info-row > div,
.wiki-card,
.wiki-step,
.wiki-image-card {
  border-radius: var(--radius) !important;
  box-shadow: none !important;
}

.cmd-table {
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--surface) !important;
}

.cmd-table th {
  color: var(--text-soft) !important;
  background: var(--surface-soft) !important;
}

.cmd-table td,
.cmd-table th {
  border-color: var(--line) !important;
}

.fd-layout {
  max-width: 1500px;
  margin: 0 auto;
}

.fd-sidebar,
.fd-outline {
  top: var(--header-height) !important;
  height: calc(100svh - var(--header-height)) !important;
}

/* Account identity and notification center */
.identity-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
}

.identity-badge .icon {
  width: 15px;
  height: 15px;
}

.identity-badge.verified {
  color: #22683a;
  border-color: #b9dcc2;
  background: #eaf6ed;
}

.identity-badge.unverified {
  color: #a23b35;
  border-color: #ebc2bd;
  background: #fff1ef;
}

.identity-badge.compact {
  width: 24px;
  min-height: 24px;
  justify-content: center;
  padding: 0;
}

.identity-badge.compact > span {
  display: none;
}

.nav-account > summary .identity-badge {
  color: #dce9de;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.nav-account > summary .identity-badge.unverified {
  color: #ffb8ae;
  border-color: rgba(255, 151, 138, 0.24);
  background: rgba(184, 60, 53, 0.16);
}

.nav-notifications {
  position: relative;
}

.notification-trigger {
  position: relative;
  color: #e8eee9;
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
}

.notification-trigger:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.notification-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 9px;
  height: 9px;
  border: 2px solid #111913;
  border-radius: 50%;
  background: #df443b;
}

.notification-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 24px));
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.notification-panel > header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}

.notification-panel h2 {
  margin: 0;
  font-size: 0.94rem;
}

.notification-panel header button {
  padding: 4px 0;
  border: 0;
  color: var(--moss);
  background: transparent;
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
}

.notification-list {
  max-height: min(480px, calc(100svh - 100px));
  overflow-y: auto;
}

.notification-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

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

.notification-item:hover {
  background: var(--surface-soft);
}

.notification-item.unread {
  background: #edf6ee;
  box-shadow: inset 3px 0 0 var(--moss);
}

.notification-item-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--moss-dark);
  border-radius: 4px;
  background: #e2eee4;
}

.notification-item-icon .icon {
  width: 17px;
  height: 17px;
}

.notification-item-copy {
  display: block;
  min-width: 0;
}

.notification-item-copy strong,
.notification-item-copy > span,
.notification-item-copy time {
  display: block;
}

.notification-item-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.82rem;
  white-space: nowrap;
}

.notification-item-copy > span {
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 0.75rem;
  line-height: 1.45;
}

.notification-item-copy time {
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 0.68rem;
}

.notification-empty {
  padding: 38px 16px;
  color: var(--text-faint);
  text-align: center;
  font-size: 0.82rem;
}

.text-action {
  display: block;
  margin: 10px auto 0;
  padding: 4px 8px;
  border: 0;
  color: var(--moss);
  background: transparent;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 750;
}

.input-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.verification-required-copy {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.verification-required-copy p {
  margin: 0;
  color: var(--text-soft);
}

.verification-required-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--blue);
  border-radius: 5px;
  background: var(--blue-soft);
}

/* Account security */
.account-page-hero,
.support-page-hero {
  min-height: 230px;
}

.account-security-layout,
.support-layout {
  padding: 30px 0 72px;
}

.security-summary {
  display: grid;
  grid-template-columns: 58px minmax(180px, 1fr) minmax(320px, auto);
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: var(--surface);
}

.security-summary.verified {
  border-left-color: var(--moss);
}

.security-summary-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--red);
  border-radius: 5px;
  background: var(--red-soft);
}

.security-summary.verified .security-summary-icon {
  color: var(--moss);
  background: #e8f3e9;
}

.security-summary-icon .icon {
  width: 27px;
  height: 27px;
}

.security-summary > div > span {
  color: var(--text-faint);
  font-size: 0.72rem;
}

.security-summary h2 {
  margin: 1px 0 7px;
  font-size: 1.3rem;
}

.security-summary dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 8px;
  margin: 0;
}

.security-summary dl > div {
  padding: 9px 12px;
  border-left: 1px solid var(--line);
}

.security-summary dt {
  color: var(--text-faint);
  font-size: 0.7rem;
}

.security-summary dd {
  margin: 2px 0 0;
  font-size: 0.82rem;
  font-weight: 750;
}

.account-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.security-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.security-panel > header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.security-panel-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--blue);
  border-radius: 4px;
  background: var(--blue-soft);
}

.security-panel:nth-child(2) .security-panel-icon {
  color: #8a641f;
  background: var(--gold-soft);
}

.security-panel h2 {
  margin: 0;
  font-size: 1rem;
}

.security-panel header p {
  margin: 2px 0 0;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.account-login-required,
.support-verification-gate {
  width: min(520px, 100%);
  margin: 56px auto 90px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.account-login-required > span,
.support-verification-gate > div {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--blue);
  border-radius: 5px;
  background: var(--blue-soft);
}

.account-login-required h2,
.support-verification-gate h2 {
  margin: 0;
  font-size: 1.3rem;
}

.account-login-required p,
.support-verification-gate p {
  margin: 6px auto 18px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

/* Private appeals and feedback */
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 20px;
}

.support-compose,
.support-history {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.support-compose {
  padding: 22px;
}

.support-compose-head,
.support-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.support-compose-head h2,
.support-history h2 {
  margin: 1px 0 0;
  font-size: 1.15rem;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
}

.segmented-control button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-radius: 3px;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
}

.segmented-control button.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.support-type-control {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 9px;
}

.support-type-control button {
  min-width: 0;
}

.support-type-hint {
  min-height: 36px;
  padding: 9px 11px;
  margin: 0 0 17px;
  border-left: 3px solid var(--moss);
  color: var(--text-soft);
  background: #edf6ee;
  font-size: 0.74rem;
  line-height: 1.55;
}

.field-counter {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  text-align: right;
  font-size: 0.68rem;
}

.support-history {
  overflow: hidden;
}

.support-history > header {
  min-height: 66px;
  padding: 0 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.support-history.standalone {
  margin: 0 0 72px;
}

.support-ticket {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.support-ticket:last-child {
  border-bottom: 0;
}

.support-ticket.highlighted,
.admin-support-item.highlighted {
  box-shadow: inset 4px 0 0 var(--gold);
  background: #fffaf0;
}

.support-ticket > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-ticket > header > div,
.admin-support-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.support-ticket time,
.admin-support-meta time {
  color: var(--text-faint);
  font-size: 0.7rem;
}

.support-ticket-number {
  color: var(--text-faint);
  font-family: Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.support-type,
.support-status {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.support-type.appeal {
  color: #875822;
  border-color: #ead2ab;
  background: #fff5df;
}

.support-type.feedback {
  color: #626c65;
  border-color: #ced5d0;
  background: #f0f3f1;
}

.support-type.report {
  color: #a23b35;
  border-color: #ebc2bd;
  background: var(--red-soft);
}

.support-type.suggestion {
  color: #76601d;
  border-color: #e4d39c;
  background: var(--gold-soft);
}

.support-type.bug {
  color: #2f6886;
  border-color: #bcd9e7;
  background: var(--blue-soft);
}

.support-status.pending {
  color: #7b591b;
  border-color: #e7d29e;
  background: #fff7df;
}

.support-status.reviewing {
  color: #2e6684;
  border-color: #bad7e5;
  background: var(--blue-soft);
}

.support-status.resolved {
  color: #22683a;
  border-color: #b9dcc2;
  background: #eaf6ed;
}

.support-status.rejected {
  color: #a23b35;
  border-color: #ebc2bd;
  background: var(--red-soft);
}

.support-ticket h3 {
  margin: 10px 0 8px;
  font-size: 0.96rem;
}

.support-ticket details summary {
  color: var(--moss);
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 750;
}

.support-ticket pre,
.admin-support-content {
  overflow: auto;
  max-height: 360px;
  padding: 13px;
  margin: 9px 0 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-soft);
  background: var(--surface-soft);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.support-admin-reply {
  padding: 13px;
  margin-top: 12px;
  border-left: 3px solid var(--moss);
  background: #edf6ee;
}

.support-admin-reply > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--moss-dark);
  font-size: 0.74rem;
  font-weight: 800;
}

.support-admin-reply p {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 0.8rem;
  white-space: pre-wrap;
}

.support-admin-reply small {
  display: block;
  margin-top: 7px;
  color: var(--text-faint);
  font-size: 0.68rem;
}

.support-upload-field {
  padding-top: 3px;
}

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

.support-upload-label small,
#supportUploadStatus {
  color: var(--text-faint);
  font-size: 0.68rem;
}

.support-upload-row {
  min-height: 40px;
  margin-top: 6px;
}

.support-upload-row .upload-button {
  margin: 0;
}

.support-attachment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.support-attachment {
  position: relative;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.support-attachment-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  place-items: center;
  overflow: hidden;
  color: inherit;
  cursor: default;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.support-attachment.loaded .support-attachment-preview {
  cursor: zoom-in;
}

.support-attachment-preview:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}

.support-attachment-preview img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-attachment-loading {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--text-faint);
}

.support-attachment-loading .icon {
  width: 24px;
  height: 24px;
}

.support-attachment.loaded .support-attachment-loading {
  display: none;
}

.support-attachment.failed .support-attachment-preview::after {
  position: absolute;
  z-index: 3;
  content: "图片加载失败";
  color: var(--red);
  font-size: 0.68rem;
}

.support-attachment figcaption {
  display: grid;
  min-width: 0;
  padding: 7px 9px;
}

.support-attachment figcaption span {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.support-attachment figcaption small {
  margin-top: 1px;
  color: var(--text-faint);
  font-size: 0.62rem;
}

.support-attachment-close {
  display: none;
}

body.support-attachment-preview-open {
  overflow: hidden;
}

.support-attachment.is-previewing {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 64px 24px 24px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgba(7, 12, 9, 0.96);
}

.support-attachment.is-previewing .support-attachment-preview {
  width: min(100%, 1280px);
  height: 100%;
  aspect-ratio: auto;
  margin: 0 auto;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}

.support-attachment.is-previewing .support-attachment-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.support-attachment.is-previewing figcaption {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  width: min(100%, 1280px);
  padding: 0;
  margin: 0 auto;
}

.support-attachment.is-previewing figcaption span,
.support-attachment.is-previewing figcaption small {
  color: #f2f7f3;
  font-size: 0.78rem;
}

.support-attachment.is-previewing figcaption small {
  margin: 0;
}

.support-attachment.is-previewing .support-attachment-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10001;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #f2f7f3;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  place-items: center;
  background: rgba(18, 25, 20, 0.88);
}

.support-attachment.is-previewing .support-attachment-close:hover {
  background: rgba(45, 61, 49, 0.96);
}

.support-attachment.is-previewing .support-attachment-close .icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .support-attachment.is-previewing {
    padding: 56px 12px 18px;
  }

  .support-attachment.is-previewing .support-attachment-close {
    top: 10px;
    right: 10px;
  }
}

.support-attachment-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 4;
  width: 30px;
  min-width: 30px;
  height: 30px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.94);
}

.admin-support-attachments {
  padding: 13px;
  margin: -5px 0 16px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--surface-soft);
}

.admin-support-attachments h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.admin-support-attachments h3 .icon {
  width: 16px;
  height: 16px;
}

.admin-support-attachments .support-attachment-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 210px));
}

/* Forum and profile verification states */
.forum-support-entry {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #b9d5e2;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--blue-soft);
  text-decoration: none;
}

.forum-support-entry > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--blue);
  border-radius: 4px;
  background: #fff;
}

.forum-support-entry strong,
.forum-support-entry small {
  display: block;
}

.forum-support-entry strong {
  font-size: 0.82rem;
}

.forum-support-entry small {
  color: var(--text-faint);
  font-size: 0.66rem;
}

.verification-reply-gate {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.verification-reply-gate > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--red);
  border-radius: 4px;
  background: var(--red-soft);
}

.verification-reply-gate strong {
  display: block;
  font-size: 0.86rem;
}

.verification-reply-gate p {
  margin: 1px 0 0;
  color: var(--text-faint);
  font-size: 0.72rem;
}

.profile-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-security-manager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.profile-security-manager > div {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.profile-manager-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--blue);
  border-radius: 4px;
  background: var(--blue-soft);
}

.profile-security-manager h2 {
  margin: 0;
  font-size: 1rem;
}

.profile-security-manager p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 0.76rem;
}

/* Admin support queue */
.admin-support-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-support-search {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.admin-support-search .icon {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--text-faint);
  transform: translateY(-50%);
}

.admin-support-search input {
  width: 100%;
  padding-left: 35px;
}

.admin-support-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.admin-support-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.admin-support-item > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-support-item h2 {
  margin: 12px 0 0;
  font-size: 1.05rem;
}

.admin-support-content {
  max-height: 420px;
  margin: 10px 0 16px;
}

.admin-support-item form {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-support-fields {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(180px, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.admin-support-handler > span {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-support-handler strong {
  display: block;
  margin-top: 7px;
  font-size: 0.84rem;
}

.admin-support-save {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.admin-support-save .tool-result {
  flex: 1;
  margin: 0;
}

.admin-table-link {
  padding: 0;
  border: 0;
  color: var(--moss-dark);
  background: transparent;
  cursor: pointer;
  font-weight: 750;
  text-align: left;
}

@media (max-width: 1080px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav-links a,
  .site-nav-more > summary {
    padding: 0 9px;
  }

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

  .security-summary {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .security-summary dl {
    grid-column: 1 / -1;
  }

  .post-detail-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
  }
}

@media (max-width: 860px) {
  .nav-toggle-v2 {
    display: inline-flex;
    order: 4;
  }

  .site-nav-links {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100svh - var(--header-height));
    overflow: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: #101712;
  }

  .site-nav-links.open {
    display: flex;
  }

  .site-nav-links a,
  .site-nav-more > summary {
    width: 100%;
    min-height: 44px;
  }

  .site-nav-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
  }

  .nav-account-name {
    display: none;
  }

  .home-hero-v2 {
    min-height: min(680px, calc(100svh - 128px));
    background-image:
      linear-gradient(0deg, rgba(8, 13, 10, 0.96) 0%, rgba(8, 13, 10, 0.58) 62%, rgba(8, 13, 10, 0.2) 100%),
      url("/assets/zero-hero-v3.png");
    background-position: center, 52% center;
  }

  .home-hero-inner {
    padding-bottom: 46px;
  }

  .home-stats-inner {
    grid-template-columns: 1fr;
  }

  .home-stat,
  .home-stat:first-child {
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .home-stat:last-child {
    border-bottom: 0;
  }

  .home-tools-grid,
  .post-detail-layout {
    grid-template-columns: 1fr;
  }

  .post-aside-card {
    position: static;
    order: -1;
  }

  .download-grid-v2 {
    grid-template-columns: 1fr;
  }

  .forum-layout-v2 {
    grid-template-columns: 1fr;
  }

  .account-security-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .support-compose {
    order: 0;
  }

  .support-history {
    order: 1;
  }

  .forum-sidebar-v2 {
    position: static;
    min-width: 0;
  }

  .forum-category-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .forum-category-list button {
    flex: 0 0 auto;
  }

  .admin-shell-v2 {
    grid-template-columns: 1fr;
  }

  .admin-sidebar-v2 {
    min-width: 0;
    padding: 10px 16px;
  }

  .admin-sidebar-v2 h2 {
    display: none;
  }

  .admin-nav-v2 {
    display: flex;
    overflow-x: auto;
  }

  .admin-nav-v2 button {
    flex: 0 0 auto;
  }

  .admin-support-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .admin-support-search {
    flex-basis: 100%;
  }

  .wiki-main {
    padding: 28px 24px 70px !important;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 58px;
  }

  .site-nav {
    width: calc(100% - 24px);
  }

  .site-brand span:last-child {
    display: none;
  }

  .notification-panel {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 10px;
    left: 10px;
    width: auto;
  }

  .nav-account > summary .identity-badge {
    display: none;
  }

  .home-hero-v2 {
    min-height: min(620px, calc(100svh - 112px));
  }

  .home-hero-inner {
    width: calc(100% - 28px);
    padding-top: 46px;
  }

  .home-hero-v2 h1 {
    font-size: 4.5rem;
  }

  .hero-copy {
    font-size: 0.98rem;
  }

  .hero-quick-row {
    align-items: stretch;
  }

  .hero-quick-row .button,
  .server-address {
    width: 100%;
  }

  .home-stats-inner,
  .site-footer-inner {
    width: calc(100% - 28px);
  }

  .section-v2 {
    padding: 52px 14px;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .home-tools-grid {
    gap: 28px;
  }

  .announcement-row {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }

  .announcement-row time {
    grid-column: 1;
  }

  .announcement-pin {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .announcement-row > div {
    grid-column: 1 / -1;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
  }

  .page-shell-v2,
  .profile-shell-v2 {
    width: calc(100% - 28px);
  }

  .forum-toolbar-v2 {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .forum-toolbar-v2 .forum-search {
    order: 3;
    flex-basis: 100%;
    width: 100%;
    max-width: none;
    margin-left: 0;
  }

  .forum-post-row {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .forum-post-row .player-head {
    width: 40px;
    height: 40px;
  }

  .forum-post-stats {
    display: none;
  }

  .form-grid-v2,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .input-action-row {
    grid-template-columns: 1fr;
  }

  .input-action-row .button {
    width: 100%;
  }

  .form-grid-v2 .wide,
  .admin-form-grid .wide {
    grid-column: auto;
  }

  .modal-backdrop-v2 {
    padding: 0;
    place-items: end center;
  }

  .modal-v2,
  .modal-v2.narrow {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 6px 6px 0 0;
  }

  .editor-toolbar-group {
    padding-right: 4px;
    margin-right: 0;
  }

  .profile-hero-inner {
    align-items: flex-start;
  }

  .profile-hero-inner .player-head {
    width: 72px;
    height: 72px;
  }

  .profile-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-fact {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .profile-fact:nth-child(2n) {
    border-right: 0;
  }

  .profile-fact:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }

  .profile-security-manager {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-avatar-manager {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .profile-avatar-manager-controls {
    width: 100%;
    min-width: 0;
  }

  .profile-avatar-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .profile-avatar-manager .profile-avatar-status {
    text-align: left;
  }

  .profile-fact:nth-child(2) {
    border-right: 0;
  }

  .profile-fact:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .security-summary {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 17px;
  }

  .security-summary-icon {
    width: 48px;
    height: 48px;
  }

  .security-summary dl {
    grid-template-columns: 1fr;
  }

  .security-summary dl > div {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .security-panel,
  .support-compose {
    padding: 17px;
  }

  .support-ticket > header,
  .admin-support-item > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .verification-reply-gate {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .verification-reply-gate .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-support-toolbar > label:not(.admin-support-search) {
    flex: 1 1 145px;
  }

  .admin-support-toolbar select {
    width: 100%;
  }

  .admin-support-fields {
    grid-template-columns: 1fr;
  }

  .admin-support-save {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-support-save .button {
    width: 100%;
  }

  .admin-main-v2 {
    padding: 18px 14px 40px;
  }

  .admin-page-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .announcement-admin-item {
    grid-template-columns: 1fr;
  }

  .wiki-main {
    padding: 22px 16px 60px !important;
  }

  body > .section,
  body > section.section {
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-ready .home-reveal,
  .motion-ready .home-reveal.is-visible,
  .home-hero-inner {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
