:root {
  --bg: #080706;
  --bg-2: #100c0a;
  --surface: rgba(17, 15, 14, 0.9);
  --surface-2: rgba(30, 23, 17, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(246, 176, 73, 0.24);
  --line-strong: rgba(255, 197, 92, 0.55);
  --text: #fff7e7;
  --muted: #c7b7a3;
  --muted-2: #8f8172;
  --gold: #ffc960;
  --orange: #ff7b22;
  --red: #d73b25;
  --cyan: #48d6ff;
  --green: #3ddc84;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 32px));
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.nso-page {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 118, 30, 0.14), transparent 34rem),
    radial-gradient(circle at 80% 4%, rgba(72, 214, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #090806 0%, #0f0a07 52%, #080706 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nso-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--gold);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 201, 96, 0.18);
  background: rgba(8, 7, 6, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.site-header__inner {
  width: var(--container);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 184px;
}

.brand img {
  width: 72px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(255, 131, 35, 0.35));
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  color: var(--gold);
  font-size: 17px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav__link {
  position: relative;
  padding: 29px 10px 26px;
  color: #e6d9c6;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 18px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--gold);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary,
.btn-ghost,
.btn-download-mini,
.btn-action,
.nso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn-primary,
.btn-action,
.nso-btn--primary {
  color: #281006 !important;
  border-color: rgba(255, 211, 94, 0.72);
  background: linear-gradient(180deg, #ffe07d, #ff8a23 62%, #d8431f);
  box-shadow: 0 12px 30px rgba(255, 102, 24, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover,
.btn-action:hover,
.nso-btn--primary:hover {
  color: #1c0c04 !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 102, 24, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.btn-ghost,
.nso-btn--ghost {
  color: var(--text);
  border-color: rgba(255, 201, 96, 0.34);
  background: rgba(255, 255, 255, 0.035);
}

.btn-ghost:hover,
.nso-btn--ghost:hover {
  border-color: rgba(255, 201, 96, 0.74);
  background: rgba(255, 201, 96, 0.08);
}

.btn-download-mini {
  color: var(--text);
  border-color: rgba(215, 59, 37, 0.65);
  background: linear-gradient(180deg, rgba(215, 59, 37, 0.85), rgba(82, 21, 14, 0.95));
}

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 160px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.account-chip__avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 201, 96, 0.15);
}

.server-strip {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 30px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.server-strip i,
.server-strip strong {
  color: var(--green);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold);
}

.portal-section {
  width: var(--container);
  margin: 0 auto;
  padding: 58px 0;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 660px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 201, 96, 0.16);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.96) 0%, rgba(8, 7, 6, 0.7) 40%, rgba(8, 7, 6, 0.28) 68%, rgba(8, 7, 6, 0.82) 100%),
    linear-gradient(180deg, rgba(8, 7, 6, 0.08), rgba(8, 7, 6, 0.95)),
    url("/assets/images/nso.jpg") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.hero__inner {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(300px, 1fr);
  gap: 42px;
  align-items: end;
  padding: 74px 0 54px;
}

.hero__copy h1 {
  margin: 0;
  color: #ffe7a5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 8px 0 rgba(77, 27, 13, 0.45), 0 22px 46px rgba(0, 0, 0, 0.5);
}

.hero__copy h1 span {
  color: #fff;
  font-size: 0.36em;
  display: block;
  margin-top: 18px;
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.hero__copy p {
  max-width: 520px;
  margin: 28px 0 0;
  color: #f2dfc6;
  font-size: 18px;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.stat-badge,
.download-card,
.feature-card,
.news-card,
.event-card,
.panel,
.guide-step,
.community-card,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(27, 23, 20, 0.9), rgba(12, 11, 10, 0.88));
  box-shadow: var(--shadow);
}

.stat-badge {
  padding: 14px;
}

.stat-badge small,
.section-kicker,
.card-label {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-badge strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 20px;
}

.hero-panel {
  align-self: stretch;
  min-height: 410px;
  padding: 20px;
  border: 1px solid rgba(255, 201, 96, 0.26);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(17, 14, 12, 0.58), rgba(10, 9, 8, 0.9)),
    url("/assets/images/nso1.jpg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-panel__status {
  width: min(100%, 340px);
  margin-left: auto;
  padding: 16px;
  border: 1px solid rgba(61, 220, 132, 0.35);
  border-radius: var(--radius);
  background: rgba(4, 18, 12, 0.76);
}

.hero-panel__status strong {
  color: var(--green);
}

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

.section-heading h2 {
  margin: 0;
  color: #ffd37a;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
  text-transform: uppercase;
}

.section-heading p {
  max-width: 540px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.download-card {
  padding: 22px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.download-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(255, 201, 96, 0.1);
  border: 1px solid rgba(255, 201, 96, 0.24);
  font-size: 28px;
}

.download-card h3,
.feature-card h3,
.news-card h3,
.event-card h3,
.guide-step h3,
.auth-card h1,
.panel h3 {
  margin: 0;
  color: var(--text);
  font-weight: 900;
}

.download-card p,
.feature-card p,
.news-card p,
.event-card p,
.guide-step p,
.auth-card p,
.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.download-card .nso-btn {
  margin-top: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  overflow: hidden;
}

.feature-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #17120e;
}

.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.feature-card:hover .feature-card__media img,
.news-card:hover img {
  transform: scale(1.04);
}

.feature-card__body,
.news-card__body,
.event-card,
.guide-step,
.panel {
  padding: 20px;
}

.panel {
  overflow-x: auto;
}

.feature-meta {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 201, 96, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 201, 96, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
}

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

.news-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  overflow: hidden;
  min-height: 128px;
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 12px;
}

.news-meta strong {
  color: var(--gold);
}

.event-stack {
  display: grid;
  gap: 12px;
}

.event-card {
  position: relative;
  overflow: hidden;
}

.event-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  opacity: 0.26;
  background: url("/assets/images/mm.jpg") center / cover no-repeat;
  border-radius: 50%;
}

.reward-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.reward-item {
  padding: 16px;
  border: 1px solid rgba(255, 201, 96, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.reward-item strong {
  color: var(--gold);
  font-size: 18px;
}

.rank-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.rank-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  font-weight: 900;
}

.rank-tab.is-active {
  color: #200d04;
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

.rank-table th,
.rank-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 201, 96, 0.12);
}

.rank-table th {
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
}

.rank-table td:last-child,
.rank-table th:last-child {
  text-align: right;
}

.rank-player {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.rank-player img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.rank-medal {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 201, 96, 0.08);
  font-weight: 950;
}

.guide-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.guide-step {
  min-height: 176px;
}

.guide-step__num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #261004;
  background: linear-gradient(180deg, var(--gold), var(--orange));
  font-weight: 950;
}

.community-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 18px;
}

.community-card i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--gold);
  background: rgba(255, 201, 96, 0.1);
  font-size: 24px;
}

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

.community-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(255, 201, 96, 0.16);
  background: #080706;
}

.site-footer__grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 28px;
  padding: 48px 0;
}

.site-footer h3 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
  text-transform: uppercase;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.footer-brand img {
  width: 120px;
  height: 74px;
  object-fit: contain;
  object-position: left center;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
}

.footer-support {
  color: var(--gold) !important;
  font-weight: 850;
}

.site-footer__bottom {
  width: var(--container);
  margin: 0 auto;
  padding: 18px 0 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 201, 96, 0.1);
  color: var(--muted-2);
  font-size: 13px;
}

.floating-support,
.back-to-top {
  position: fixed;
  right: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(17, 15, 14, 0.92);
  box-shadow: var(--shadow);
}

.floating-support {
  bottom: 76px;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--gold);
  font-weight: 900;
}

.back-to-top {
  bottom: 22px;
  width: 42px;
  height: 42px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.page-hero {
  width: var(--container);
  margin: 0 auto;
  padding: 64px 0 28px;
}

.page-hero h1 {
  margin: 0;
  color: #ffd37a;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 950;
  text-transform: uppercase;
}

.page-hero p {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.auth-shell {
  width: min(560px, calc(100vw - 32px));
  margin: 48px auto 70px;
}

.auth-card {
  padding: 28px;
}

.nso-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.nso-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.nso-form input,
.nso-form select,
.nso-form textarea,
.form-control {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 201, 96, 0.24) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  box-shadow: none !important;
  font-size: 15px;
}

.nso-form textarea,
textarea.form-control {
  min-height: 120px;
  padding: 14px;
}

.nso-form input:focus,
.nso-form select:focus,
.nso-form textarea:focus,
.form-control:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(255, 201, 96, 0.15) !important;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: end;
}

.captcha-image {
  width: 150px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.alert,
.nso-alert {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.success {
  color: var(--green);
}

.error {
  color: #ff8d78;
}

.table-responsive {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.table,
.table td,
.table th {
  color: var(--text);
  border-color: rgba(255, 201, 96, 0.12) !important;
}

.table thead th {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 900;
}

.faq-item p {
  padding: 0 18px 18px;
}

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

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 850;
}

.filter-chip.is-active {
  color: #210f05;
  background: linear-gradient(180deg, var(--gold), var(--orange));
}

.home-popup[hidden] {
  display: none;
}

.home-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.home-popup.is-visible {
  opacity: 1;
}

.home-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.home-popup__dialog {
  position: relative;
  width: min(840px, calc(100vw - 28px));
  max-height: min(86vh, 780px);
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 201, 96, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(27, 20, 14, 0.98), rgba(9, 8, 7, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 201, 96, 0.36);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
}

.home-popup__media {
  min-height: 360px;
  background: #0d0907;
}

.home-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-popup__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 38px;
}

.home-popup__body h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
  font-weight: 950;
  text-transform: uppercase;
}

.home-popup__body p {
  margin: 0;
  color: #f3dfc3;
  font-size: 16px;
  line-height: 1.7;
}

.home-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

@media (max-width: 1120px) {
  .site-header__inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
    order: 3;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    top: 98px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(10, 9, 8, 0.98);
    box-shadow: var(--shadow);
  }

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

  .site-nav__link {
    padding: 14px;
  }

  .site-nav__link::after {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero__inner,
  .two-col {
    grid-template-columns: 1fr;
  }

  .download-grid,
  .guide-grid,
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(calc(100vw - 24px), 680px);
  }

  .site-header__inner {
    gap: 8px;
  }

  .brand {
    min-width: 0;
    flex: 0 0 auto;
  }

  .brand img {
    width: 52px;
    height: 38px;
  }

  .brand span,
  .btn-ghost,
  .server-strip span:nth-child(4) {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    gap: 6px;
    flex: 0 0 auto;
  }

  .menu-toggle {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 0;
  }

  .btn-primary,
  .btn-download-mini,
  .btn-ghost,
  .nso-btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .server-strip {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 52px 0 34px;
  }

  .hero__stats,
  .download-grid,
  .feature-grid,
  .guide-grid,
  .community-grid,
  .reward-track,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 280px;
  }

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

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

  .news-card img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .news-card__body {
    padding: 14px;
  }

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

  .captcha-image {
    width: 100%;
  }

  .site-footer__bottom {
    flex-direction: column;
  }

  .floating-support span {
    display: none;
  }

  .rank-table {
    min-width: 620px;
  }

  .community-card {
    align-items: flex-start;
  }

  .home-popup {
    padding: 12px;
  }

  .home-popup__dialog {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .home-popup__media {
    min-height: 190px;
    max-height: 240px;
  }

  .home-popup__body {
    padding: 22px;
  }

  .home-popup__actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
