:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-soft: #0e1119;
  --panel: rgba(17, 21, 32, 0.86);
  --panel-solid: #111520;
  --panel-raised: #151a28;
  --line: #242b3e;
  --line-bright: #34405f;
  --fg: #eef2ff;
  --muted: #9ca7be;
  --muted-strong: #c2cbe0;
  --accent: #6385ff;
  --accent-bright: #8ca5ff;
  --accent-two: #896fff;
  --success: #36d58b;
  --success-soft: rgba(54, 213, 139, 0.13);
  --danger: #ff6f7d;
  --danger-soft: rgba(255, 111, 125, 0.13);
  --warning: #f6c35b;
  --warning-soft: rgba(246, 195, 91, 0.13);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.25);
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 12px;
  --page-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--fg);
  background:
    radial-gradient(900px 560px at 10% 8%, rgba(99, 133, 255, 0.15), transparent 55%),
    radial-gradient(800px 520px at 88% 15%, rgba(137, 111, 255, 0.11), transparent 58%),
    linear-gradient(180deg, #090b10 0%, #0b0e15 54%, #080a0f 100%);
  font-family: Inter, Arial, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, #000 28%, transparent 92%);
  content: "";
  opacity: 0.42;
  pointer-events: none;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

a {
  color: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(140, 165, 255, 0.56);
  outline-offset: 3px;
}

.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;
}

.cursor-glow {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.22;
  pointer-events: none;
  transform: translate3d(-500px, -500px, 0);
  will-change: transform;
}

.cursor-glow-one {
  background: radial-gradient(circle, rgba(99, 133, 255, 0.72), transparent 70%);
}

.cursor-glow-two {
  background: radial-gradient(circle, rgba(137, 111, 255, 0.54), transparent 72%);
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1420px, calc(100% - 40px));
  min-height: 84px;
  margin-inline: auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--fg);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark,
.banner-mark {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: rgba(99, 133, 255, 0.08);
  box-shadow: 0 8px 22px rgba(99, 133, 255, 0.28);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
}

.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.view-nav-btn.is-active {
  color: #fff;
  border-color: rgba(99, 133, 255, 0.42);
  background: rgba(99, 133, 255, 0.15);
}

.admin-nav-btn {
  color: #dbe4ff;
  border-color: rgba(99, 133, 255, 0.4);
}

.login-btn {
  gap: 8px;
  color: #fff;
  border-color: rgba(88, 101, 242, 0.55);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.88), rgba(99, 84, 222, 0.88));
}

.discord-login-icon {
  width: 18px;
  height: 18px;
}

.account-area {
  position: relative;
}

.account-btn {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 5px 10px 5px 6px;
  gap: 9px;
  color: var(--fg);
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: rgba(17, 21, 32, 0.9);
  cursor: pointer;
}

.account-avatar-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid rgba(99, 133, 255, 0.32);
  border-radius: 11px;
  background: rgba(99, 133, 255, 0.1);
}

.account-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.account-copy strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chevron {
  color: var(--muted);
  font-size: 15px;
}

.rank-badge,
.author-rank,
.chat-rank-badge,
.category-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
}

.rank-member {
  color: var(--success);
  background: rgba(54, 213, 139, 0.08);
}

.rank-listed {
  color: var(--danger);
  background: rgba(255, 111, 125, 0.08);
}

.rank-seller {
  color: var(--warning);
  background: rgba(246, 195, 91, 0.08);
}

.rank-admin {
  color: var(--accent-bright);
  background: rgba(99, 133, 255, 0.1);
}

.rank-banned {
  color: #d1d5db;
  border-color: #171717;
  background: #000;
}

.account-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  right: 0;
  width: 210px;
  padding: 7px;
  border: 1px solid var(--line-bright);
  border-radius: 13px;
  background: rgba(15, 19, 29, 0.98);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.account-menu[hidden] {
  display: none;
}

.account-menu button {
  width: 100%;
  padding: 10px 11px;
  color: var(--muted-strong);
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.account-menu button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-btn,
.secondary-btn,
.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: 180ms ease;
  transition-property: border-color, background, color, transform, box-shadow;
}

.nav-btn {
  color: var(--muted-strong);
  background: rgba(17, 21, 32, 0.72);
  backdrop-filter: blur(14px);
}

.nav-btn:hover {
  color: var(--fg);
  border-color: var(--line-bright);
  background: rgba(24, 29, 44, 0.9);
  transform: translateY(-1px);
}

.home-nav-btn {
  color: #dfe6ff;
  border-color: rgba(99, 133, 255, 0.33);
  background: rgba(99, 133, 255, 0.1);
}

.discord-btn {
  color: var(--muted-strong);
  border-color: var(--line);
  background: rgba(17, 21, 32, 0.72);
}

.top-banner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(var(--page-width), calc(100% - 40px));
  min-height: 92px;
  margin: 14px auto 0;
  padding: 18px 22px;
  overflow: hidden;
  gap: 18px;
  color: inherit;
  border: 1px solid rgba(99, 133, 255, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(99, 133, 255, 0.14), rgba(137, 111, 255, 0.06)),
    rgba(15, 19, 29, 0.82);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.top-banner::after {
  position: absolute;
  width: 260px;
  height: 160px;
  right: -80px;
  top: -100px;
  border-radius: 999px;
  background: rgba(137, 111, 255, 0.18);
  filter: blur(20px);
  content: "";
  pointer-events: none;
}

.top-banner:hover {
  border-color: rgba(99, 133, 255, 0.47);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.top-banner-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.banner-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.site-logo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 2px;
  border-radius: inherit;
  object-fit: contain;
}

.logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(145deg, var(--accent), var(--accent-two));
  font-size: 18px;
}

.logo-missing .site-logo {
  display: none;
}

.logo-missing .logo-fallback {
  display: grid;
}

.top-banner-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.top-banner-title {
  font-size: 14px;
  font-weight: 800;
}

.top-banner-desc {
  color: var(--muted);
  font-size: 13px;
}

.top-banner-desc strong {
  color: var(--accent-bright);
}

.top-banner-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--accent-bright);
  border: 1px solid rgba(99, 133, 255, 0.3);
  border-radius: 999px;
  font-size: 19px;
  transition: transform 180ms ease;
}

.top-banner:hover .top-banner-arrow {
  transform: translateX(3px);
}

main {
  position: relative;
  z-index: 1;
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
}

.page-view[hidden] {
  display: none;
}

.page-view:not(.is-active) {
  display: none;
}

.view-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 78px 0 30px;
  gap: 24px;
}

.view-heading h1 {
  margin: 5px 0 12px;
  font-size: clamp(36px, 5vw, 58px);
}

.view-heading .lead {
  margin: 0;
  text-align: left;
}

.create-post-btn {
  flex: 0 0 auto;
  min-height: 46px;
}

.intro {
  max-width: 820px;
  margin: 92px auto 44px;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.057em;
  text-wrap: balance;
}

.lead {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 22px;
  gap: 14px;
}

.stat-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 110px;
  padding: 20px;
  overflow: hidden;
  column-gap: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(20, 25, 38, 0.9), rgba(14, 18, 28, 0.84));
  box-shadow: var(--shadow-soft);
}

.stat-card::after {
  position: absolute;
  width: 90px;
  height: 90px;
  right: -34px;
  bottom: -52px;
  border-radius: 999px;
  background: rgba(99, 133, 255, 0.11);
  content: "";
  filter: blur(8px);
}

.stat-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--accent-bright);
  border: 1px solid rgba(99, 133, 255, 0.22);
  border-radius: 12px;
  background: rgba(99, 133, 255, 0.08);
  font-weight: 800;
}

.ui-icon {
  width: 21px;
  height: 21px;
}

.stat-title {
  align-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.stat-value {
  align-self: start;
  min-width: 0;
  overflow: hidden;
  color: var(--fg);
  font-size: 21px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-value-id {
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: -0.02em;
}

.search-shell {
  padding: 1px;
  border-radius: calc(var(--radius-lg) + 1px);
  background: linear-gradient(135deg, rgba(99, 133, 255, 0.55), rgba(137, 111, 255, 0.08) 45%, rgba(52, 64, 95, 0.25));
  box-shadow: var(--shadow);
}

.search-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 220px at 50% -10%, rgba(99, 133, 255, 0.1), transparent 70%),
    rgba(13, 17, 26, 0.97);
}

.search-heading,
.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.search-heading {
  align-items: center;
  margin-bottom: 24px;
}

.search-heading h2,
.modal-heading h2 {
  margin: 4px 0 0;
  font-size: 23px;
  letter-spacing: -0.035em;
}

.api-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 8px 10px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--warning);
  box-shadow: 0 0 12px rgba(246, 195, 91, 0.56);
}

.api-status[data-state="ready"] .status-dot {
  background: var(--success);
  box-shadow: 0 0 12px rgba(54, 213, 139, 0.56);
}

.api-status[data-state="error"] .status-dot {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(255, 111, 125, 0.56);
}

.input-area {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--accent-bright);
  font-size: 17px;
  font-weight: 800;
  transform: translateY(-50%);
  pointer-events: none;
}

#userid,
.captcha-input {
  width: 100%;
  color: var(--fg);
  border: 1px solid var(--line);
  background: #0d111a;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

#userid {
  min-height: 56px;
  padding: 0 18px 0 44px;
  border-radius: 14px;
  font-size: 14px;
}

#userid::placeholder,
.captcha-input::placeholder {
  color: #717b91;
}

#userid:hover,
.captcha-input:hover {
  border-color: var(--line-bright);
}

#userid:focus,
.captcha-input:focus {
  border-color: var(--accent);
  background: #0f1420;
  box-shadow: 0 0 0 4px rgba(99, 133, 255, 0.1);
}

#userid[aria-invalid="true"],
.captcha-input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 111, 125, 0.09);
}

#searchBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 56px;
  padding: 0 23px;
  overflow: hidden;
  gap: 9px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
  box-shadow: 0 12px 28px rgba(91, 116, 238, 0.22);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

#searchBtn:hover:not(:disabled) {
  filter: brightness(1.09);
  box-shadow: 0 15px 34px rgba(91, 116, 238, 0.32);
  transform: translateY(-1px);
}

#searchBtn:disabled {
  cursor: wait;
  opacity: 0.74;
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}

#searchBtn.searching .spinner {
  display: inline-block;
}

.input-hint {
  margin: 8px 0 0;
  color: #727d93;
  font-size: 11px;
}

.result-box {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 126px;
  margin-top: 24px;
  padding: 22px;
  gap: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 9, 14, 0.46);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.result-box[data-state="loading"] {
  border-color: rgba(99, 133, 255, 0.38);
  background: rgba(99, 133, 255, 0.065);
}

.result-box[data-state="clear"],
.result-box[data-state="verified"] {
  border-color: rgba(54, 213, 139, 0.36);
  background: var(--success-soft);
}

.result-box[data-state="admin"] {
  border-color: rgba(99, 133, 255, 0.42);
  background: rgba(99, 133, 255, 0.1);
}

.result-box[data-state="listed"],
.result-box[data-state="error"] {
  border-color: rgba(255, 111, 125, 0.4);
  background: var(--danger-soft);
}

.result-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 22px;
  font-weight: 800;
}

.result-admin-icon {
  display: none;
  width: 25px;
  height: 25px;
}

[data-state="admin"] .result-icon-glyph {
  display: none;
}

[data-state="admin"] .result-admin-icon {
  display: block;
}

[data-state="clear"] .result-icon,
[data-state="verified"] .result-icon {
  color: var(--success);
  border-color: rgba(54, 213, 139, 0.28);
  background: rgba(54, 213, 139, 0.09);
}

[data-state="admin"] .result-icon,
[data-state="loading"] .result-icon {
  color: var(--accent-bright);
  border-color: rgba(99, 133, 255, 0.3);
  background: rgba(99, 133, 255, 0.08);
}

[data-state="listed"] .result-icon,
[data-state="error"] .result-icon {
  color: var(--danger);
  border-color: rgba(255, 111, 125, 0.28);
  background: rgba(255, 111, 125, 0.08);
}

.result-copy {
  min-width: 0;
}

.id-preview {
  overflow: hidden;
  margin-bottom: 5px;
  color: var(--fg);
  font-size: clamp(15px, 2vw, 19px);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-message {
  max-width: 780px;
  color: var(--muted);
  font-size: 13px;
}

.safety-note {
  display: flex;
  align-items: flex-start;
  max-width: 820px;
  margin: 24px auto 0;
  gap: 12px;
  color: var(--muted);
}

.safety-note p {
  margin: 0;
  font-size: 12px;
}

.safety-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--warning);
  border: 1px solid rgba(246, 195, 91, 0.25);
  border-radius: 999px;
  background: rgba(246, 195, 91, 0.08);
  font-size: 12px;
  font-weight: 800;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--page-width), calc(100% - 40px));
  margin: 72px auto 0;
  padding: 26px 0 32px;
  gap: 20px;
  color: #707a8f;
  border-top: 1px solid rgba(36, 43, 62, 0.75);
  font-size: 11px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--fg);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(3, 5, 9, 0.76);
  opacity: 0;
  backdrop-filter: blur(12px);
  transition: opacity 180ms ease;
}

.modal.visible {
  opacity: 1;
}

.modal-card {
  width: min(100%, 540px);
  padding: 26px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(99, 133, 255, 0.1), transparent 68%),
    var(--panel-solid);
  box-shadow: var(--shadow);
  transform: translateY(10px) scale(0.985);
  transition: transform 180ms ease;
}

.modal.visible .modal-card {
  transform: translateY(0) scale(1);
}

.contact-card {
  width: min(100%, 920px);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.icon-btn:hover {
  color: var(--fg);
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.05);
}

.modal-description {
  margin: 15px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.captcha-canvas-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin-bottom: 18px;
  padding: 12px 56px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0a0d14;
}

#captchaCanvas,
#secureCaptchaCanvas {
  width: min(100%, 300px);
  height: 64px;
  border-radius: 9px;
  user-select: none;
}

.captcha-refresh {
  position: absolute;
  top: 50%;
  right: 13px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--accent-bright);
  border: 1px solid rgba(99, 133, 255, 0.25);
  border-radius: 10px;
  background: rgba(99, 133, 255, 0.08);
  cursor: pointer;
  font-size: 20px;
  transform: translateY(-50%);
}

.captcha-card label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.captcha-input {
  min-height: 50px;
  padding: 0 14px;
  border-radius: 12px;
  letter-spacing: 0.15em;
}

.field-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 12px;
}

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

.form-modal-card {
  width: min(100%, 680px);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.stack-form label {
  margin-top: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.stack-form input,
.stack-form textarea,
.stack-form select {
  width: 100%;
  padding: 12px 13px;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d111a;
  outline: none;
  resize: vertical;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.stack-form input:focus,
.stack-form textarea:focus,
.stack-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 133, 255, 0.1);
}

.stack-form option {
  color: var(--fg);
  background: var(--panel-solid);
}

.field-help {
  margin: -4px 0 1px;
  color: var(--muted);
  font-size: 11px;
}

.field-help strong {
  color: var(--warning);
}

.optional-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.danger-notice {
  display: flex;
  margin: 18px 0 16px;
  padding: 14px;
  flex-direction: column;
  gap: 4px;
  color: #ffd9dd;
  border: 1px solid rgba(255, 111, 125, 0.34);
  border-radius: 13px;
  background: rgba(255, 111, 125, 0.1);
  font-size: 12px;
}

.danger-notice span {
  color: var(--muted-strong);
}

.danger-btn {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  border: 1px solid rgba(255, 111, 125, 0.42);
  border-radius: 12px;
  background: linear-gradient(135deg, #c83f52, #8f2838);
  cursor: pointer;
  font-weight: 800;
}

.compact-btn {
  min-height: 36px;
  padding-inline: 12px;
}

.forum-toolbar {
  display: flex;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 38px;
  padding: 0 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 21, 32, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: #fff;
  border-color: rgba(99, 133, 255, 0.42);
  background: rgba(99, 133, 255, 0.14);
}

.permission-note,
.content-state {
  margin: 12px 0 18px;
  padding: 14px 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(17, 21, 32, 0.58);
  font-size: 12px;
}

.permission-note.can-publish {
  color: #ccf7e2;
  border-color: rgba(54, 213, 139, 0.26);
  background: rgba(54, 213, 139, 0.07);
}

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

.forum-post {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 25, 38, 0.94), rgba(13, 17, 26, 0.92));
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.forum-post:hover,
.forum-post:focus-visible {
  border-color: rgba(99, 133, 255, 0.48);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(99, 133, 255, 0.08);
  outline: none;
  transform: translateY(-3px);
}

.forum-post-image {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: #090c12;
}

.forum-post-body {
  display: flex;
  padding: 19px;
  flex: 1;
  flex-direction: column;
}

.forum-post-meta,
.forum-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.forum-post-meta {
  justify-content: space-between;
  margin-bottom: 13px;
}

.forum-post-time {
  color: #717b91;
  font-size: 10px;
}

.category-sale {
  color: var(--success);
  background: rgba(54, 213, 139, 0.07);
}

.category-buy {
  color: var(--accent-bright);
  background: rgba(99, 133, 255, 0.08);
}

.category-other {
  color: var(--warning);
  background: rgba(246, 195, 91, 0.08);
}

.category-admin {
  color: #c3b8ff;
  background: rgba(137, 111, 255, 0.1);
}

.forum-post h2 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.forum-post-description {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.forum-author {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(36, 43, 62, 0.72);
}

.forum-author-avatar {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: #0a0d14;
}

.forum-author-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.forum-author-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-delete-btn {
  position: relative;
  z-index: 2;
  margin-left: auto;
}

.forum-chat-cue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 12px;
  color: #b9c7ff;
  border: 1px solid rgba(99, 133, 255, 0.2);
  border-radius: 11px;
  background: rgba(99, 133, 255, 0.07);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.forum-chat-cue span:last-child {
  color: var(--accent-bright);
  font-size: 17px;
  transition: transform 180ms ease;
}

.forum-post:hover .forum-chat-cue span:last-child,
.forum-post:focus-visible .forum-chat-cue span:last-child {
  transform: translateX(3px);
}

.chat-modal-card {
  display: flex;
  width: min(100%, 820px);
  max-height: min(780px, calc(100vh - 40px));
  flex-direction: column;
  overflow: hidden;
}

.chat-modal-heading {
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.chat-modal-heading > div {
  min-width: 0;
}

.chat-modal-heading h2 {
  max-width: 670px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.chat-messages {
  display: flex;
  min-height: 250px;
  margin: 16px -8px 14px 0;
  padding: 2px 10px 2px 0;
  overflow-y: auto;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(99, 133, 255, 0.4) transparent;
}

.chat-content-state {
  margin: auto;
  text-align: center;
}

.chat-message {
  display: grid;
  padding: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  border: 1px solid rgba(36, 43, 62, 0.84);
  border-radius: 14px;
  background: rgba(12, 16, 25, 0.78);
}

.chat-message.is-post-owner {
  border-color: rgba(246, 195, 91, 0.34);
  background: linear-gradient(135deg, rgba(246, 195, 91, 0.09), rgba(12, 16, 25, 0.82) 58%);
}

.chat-message-avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 1px solid var(--line-bright);
  border-radius: 11px;
  background: #080b11;
}

.chat-message-body {
  min-width: 0;
}

.chat-message-header {
  display: flex;
  align-items: center;
  min-height: 21px;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-author-name {
  color: var(--fg);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.chat-message.is-post-owner .chat-author-name {
  color: var(--warning);
  text-shadow: 0 0 20px rgba(246, 195, 91, 0.24);
}

.chat-owner-badge,
.chat-rank-badge {
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chat-owner-badge {
  color: #191204;
  background: var(--warning);
}

.chat-message-time {
  margin-left: auto;
  color: #69748a;
  font-size: 9px;
  white-space: nowrap;
}

.chat-message-content {
  margin: 6px 0 0;
  color: #c6cddd;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-login-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  gap: 12px;
  color: var(--muted-strong);
  border: 1px solid rgba(99, 133, 255, 0.24);
  border-radius: 13px;
  background: rgba(99, 133, 255, 0.07);
  font-size: 11px;
}

.chat-login-btn {
  flex: 0 0 auto;
}

.chat-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  width: 100%;
  min-height: 86px;
  padding: 12px 14px;
  resize: vertical;
  color: var(--fg);
  border: 1px solid var(--line-bright);
  border-radius: 13px;
  outline: none;
  background: rgba(8, 11, 17, 0.82);
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.chat-form textarea:focus {
  border-color: rgba(99, 133, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(99, 133, 255, 0.1);
}

.chat-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 12px;
}

.chat-form-footer > span {
  color: #707b92;
  font-size: 10px;
}

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

.admin-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17, 21, 32, 0.84);
  box-shadow: var(--shadow-soft);
}

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

.admin-card h2 {
  margin: 5px 0 17px;
  font-size: 19px;
}

.admin-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin: 4px 0 10px;
  gap: 10px;
}

.report-search {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(8, 11, 17, 0.58);
  outline: none;
}

.report-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(99, 133, 255, 0.1);
}

.report-count {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  color: #d8e0ff;
  border: 1px solid rgba(99, 133, 255, 0.3);
  border-radius: 999px;
  background: rgba(99, 133, 255, 0.09);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.report-retention-note {
  margin: 0 0 16px;
  color: #7e89a0;
  font-size: 10px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 14px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 11, 17, 0.42);
}

.admin-list-item h3 {
  margin: 0 0 5px;
  font-size: 13px;
}

.admin-list-item p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.report-card {
  display: block;
  padding: 19px;
  border-color: rgba(99, 133, 255, 0.19);
  background:
    radial-gradient(480px 150px at 0% 0%, rgba(99, 133, 255, 0.075), transparent 68%),
    rgba(8, 11, 17, 0.56);
}

.report-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 14px;
}

.report-card-header h3 {
  margin: 7px 0 3px;
  color: var(--fg);
  font-size: 16px;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.report-heading-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  color: #bcf7da;
  border: 1px solid rgba(54, 213, 139, 0.28);
  border-radius: 999px;
  background: rgba(54, 213, 139, 0.08);
  font-size: 9px;
  font-weight: 800;
}

.report-status::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  content: "";
  box-shadow: 0 0 8px rgba(54, 213, 139, 0.65);
}

.report-reference,
.report-received {
  color: #727e96;
  font-size: 10px;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin-bottom: 12px;
  gap: 10px;
}

.report-meta-card,
.report-detail-section {
  padding: 13px;
  border: 1px solid rgba(36, 43, 62, 0.78);
  border-radius: 12px;
  background: rgba(12, 16, 25, 0.74);
}

.report-detail-section {
  margin-top: 10px;
}

.report-meta-label {
  display: block;
  margin-bottom: 8px;
  color: #8897bc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.report-id-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.report-id-row code {
  color: #e6ebff;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.report-copy-btn {
  min-height: 28px;
  padding: 0 8px;
  color: #b8c4e4;
  border: 1px solid rgba(99, 133, 255, 0.24);
  border-radius: 8px;
  background: rgba(99, 133, 255, 0.07);
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}

.report-copy-btn:hover {
  color: #fff;
  border-color: rgba(99, 133, 255, 0.52);
  background: rgba(99, 133, 255, 0.14);
}

.report-inspect-btn {
  color: #d9d0ff;
  border-color: rgba(137, 111, 255, 0.3);
  background: rgba(137, 111, 255, 0.08);
}

.report-reporter-profile {
  display: flex;
  align-items: center;
  margin-bottom: 9px;
  gap: 9px;
}

.report-reporter-profile img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: #080b11;
}

.report-reporter-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.report-reporter-identity strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--fg);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-reporter-identity > span:not(.author-rank) {
  color: #77839a;
  font-size: 9px;
}

.report-card .report-description,
.report-card .report-no-evidence {
  margin: 0;
  color: #b5bfd3;
  font-size: 11px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.report-card .report-no-evidence {
  color: #758096;
  font-style: italic;
}

.report-evidence-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-evidence-link {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px;
  gap: 2px 8px;
  color: #cbd5f5;
  border: 1px solid rgba(99, 133, 255, 0.2);
  border-radius: 10px;
  background: rgba(99, 133, 255, 0.055);
  text-decoration: none;
}

.report-evidence-link:hover {
  border-color: rgba(99, 133, 255, 0.45);
  background: rgba(99, 133, 255, 0.11);
}

.report-evidence-link strong {
  font-size: 10px;
}

.report-evidence-link > span:not(.report-link-arrow) {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #78849c;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-link-arrow {
  color: var(--accent-bright);
  font-size: 9px;
  font-weight: 800;
}

.report-card-footer {
  display: block;
  width: 100%;
  margin: 12px 0 0;
  padding: 10px 0 0;
  color: #68748b;
  border-top: 1px solid rgba(36, 43, 62, 0.64);
  font-size: 9px;
}

.admin-item-actions {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.admin-action-btn {
  min-height: 34px;
  padding: 0 10px;
  color: var(--muted-strong);
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.admin-action-btn.danger {
  color: #ffbec5;
  border-color: rgba(255, 111, 125, 0.34);
  background: rgba(255, 111, 125, 0.07);
}

.admin-user-result:not(:empty) {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 11, 17, 0.42);
}

.admin-user-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.admin-user-profile img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 13px;
  background: #080b11;
}

.admin-user-profile p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.auth-pending > .site-header,
.auth-pending > .top-banner,
.auth-pending > main,
.auth-pending > footer {
  visibility: hidden;
}

.ban-screen[hidden] {
  display: none;
}

.ban-screen {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #ff344d;
  background: #000;
  text-align: center;
}

.ban-screen-content {
  max-width: 720px;
}

.ban-screen-icon {
  display: block;
  margin-bottom: 20px;
  font-size: 64px;
}

.ban-screen h1 {
  margin-bottom: 14px;
  color: #ff233f;
  font-size: clamp(40px, 8vw, 78px);
}

.ban-screen p {
  color: #ff8796;
  font-size: clamp(15px, 3vw, 21px);
}

body.is-banned > :not(#banScreen):not(script) {
  display: none !important;
}

.secondary-btn {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
}

.primary-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, var(--accent), var(--accent-two));
}

.secondary-btn:hover,
.primary-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: stretch;
  gap: 18px;
}

.contact-options {
  display: grid;
  align-content: start;
  gap: 12px;
}

.contact-option {
  display: flex;
  align-items: flex-start;
  padding: 17px;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 10, 16, 0.35);
}

.contact-option-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  color: var(--accent-bright);
  border: 1px solid rgba(99, 133, 255, 0.24);
  border-radius: 11px;
  background: rgba(99, 133, 255, 0.08);
  font-weight: 800;
}

.discord-option-icon {
  color: #c8d2ff;
  border-color: rgba(88, 101, 242, 0.4);
  background: rgba(88, 101, 242, 0.14);
}

.discord-brand-icon {
  width: 21px;
  height: 21px;
}

.contact-option h3 {
  margin: 1px 0 6px;
  font-size: 13px;
}

.contact-option p,
.contact-option a {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.contact-option a {
  color: var(--accent-bright);
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-option a:hover {
  text-decoration: underline;
}

.inline-link {
  display: inline-block;
  margin-top: 8px !important;
  font-weight: 700;
}

.discord-widget-wrap {
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111318;
}

.discord-widget-wrap iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

.toast-container {
  position: fixed;
  z-index: 80;
  right: 18px;
  bottom: 18px;
  display: flex;
  width: min(360px, calc(100% - 36px));
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
}

.toast {
  display: flex;
  width: 100%;
  padding: 13px 14px;
  flex-direction: column;
  gap: 2px;
  color: var(--fg);
  border: 1px solid var(--line-bright);
  border-radius: 13px;
  background: rgba(18, 23, 35, 0.96);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  text-align: left;
  transform: translateY(10px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(16px);
}

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

.toast.error {
  border-color: rgba(255, 111, 125, 0.38);
}

.toast strong {
  font-size: 12px;
}

.toast span {
  color: var(--muted);
  font-size: 11px;
}

.ripple {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 64%);
  opacity: 0.8;
  pointer-events: none;
  transform: scale(0.18);
  animation: ripple 560ms ease-out forwards;
}

.noscript-message {
  position: fixed;
  z-index: 100;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 14px;
  color: #fff;
  border: 1px solid rgba(255, 111, 125, 0.4);
  border-radius: 12px;
  background: #5d2029;
  text-align: center;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: scale(1);
  }
}

@media (max-width: 860px) {
  .nav-detail {
    display: none;
  }

  .intro {
    margin-top: 72px;
  }

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

  .stat-card {
    min-height: 96px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .forum-posts,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-card-wide {
    grid-column: auto;
  }

  .discord-widget-wrap {
    display: none;
  }
}

@media (max-width: 620px) {
  .site-header,
  .top-banner,
  main,
  footer {
    width: min(100% - 24px, var(--page-width));
  }

  .site-header {
    min-height: 72px;
    align-items: center;
    padding-block: 10px;
    flex-wrap: wrap;
    gap: 9px;
  }

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

  .nav-actions {
    width: 100%;
    flex: 1 1 100%;
    justify-content: center;
    gap: 7px;
  }

  .discord-btn,
  .contact-btn,
  #homeNavBtn {
    display: inline-flex;
  }

  .login-btn {
    min-height: 42px;
  }

  .account-copy strong {
    max-width: 92px;
  }

  .nav-btn {
    min-height: 38px;
    padding-inline: 11px;
    font-size: 12px;
  }

  .top-banner {
    min-height: 80px;
    padding: 14px;
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .top-banner-badge {
    width: 46px;
    height: 46px;
  }

  .top-banner-arrow,
  .top-banner-desc {
    display: none;
  }

  .intro {
    margin: 62px auto 32px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .search-card {
    padding: 19px;
  }

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

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

  #searchBtn {
    width: 100%;
  }

  .result-box {
    align-items: flex-start;
    padding: 18px;
  }

  .result-icon {
    width: 42px;
    height: 42px;
  }

  .modal {
    align-items: end;
    padding: 10px;
  }

  .modal-card {
    max-height: calc(100vh - 20px);
    padding: 21px;
    overflow-y: auto;
    border-radius: 20px;
  }

  .chat-modal-card {
    height: min(720px, calc(100vh - 20px));
    padding: 18px;
    overflow: hidden;
  }

  .chat-messages {
    min-height: 160px;
  }

  .chat-message {
    padding: 10px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .chat-message-avatar {
    width: 34px;
    height: 34px;
  }

  .chat-message-time {
    width: 100%;
    margin-left: 0;
  }

  .chat-login-notice {
    align-items: stretch;
    flex-direction: column;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 58px;
  }

  .view-heading {
    align-items: flex-start;
    margin-top: 54px;
    flex-direction: column;
  }

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

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

  .report-toolbar,
  .report-meta-grid,
  .report-evidence-list {
    grid-template-columns: 1fr;
  }

  .report-count {
    width: fit-content;
  }

  .report-card {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .cursor-glow {
    display: none;
  }
}
