:root {
  --black: #08070b;
  --black-soft: #0f0d14;
  --panel: #18131f;
  --panel-strong: #22192d;
  --violet: #9f35f2;
  --violet-soft: #5e258d;
  --mauve: #c392ff;
  --gold: #f3c15a;
  --gold-dark: #b98224;
  --text: #ffffff;
  --muted: #c8bdcf;
  --muted-dark: #8c8194;
  --line: rgba(195, 146, 255, 0.18);
  --line-gold: rgba(243, 193, 90, 0.34);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --header-height: 92px;
  --page-x: clamp(18px, 6vw, 118px);
  --max: 1700px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(8, 7, 11, 0.94), rgba(8, 7, 11, 0.99)),
    url("/assets/atlanta-new-horizon-branding.png") center top / cover fixed no-repeat;
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 11, 0.96) 0%, rgba(31, 14, 46, 0.55) 46%, rgba(8, 7, 11, 0.94) 100%),
    linear-gradient(180deg, transparent 0%, rgba(8, 7, 11, 0.88) 72%, var(--black) 100%);
  pointer-events: none;
  z-index: -1;
}

body.home-page {
  background: #000;
}

body.home-page::before {
  background: #000;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  padding: 17px var(--page-x);
  background: rgba(8, 7, 11, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: var(--max);
  min-height: 58px;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(88px, 1fr) auto minmax(246px, 1fr);
  align-items: center;
  gap: 24px;
}

.brand-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(159, 53, 242, 0.42));
}

.brand-text {
  display: none;
  color: #f8eeff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3.1vw, 58px);
  min-width: 0;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 16px 0;
  color: #f7f1ff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  transform: translateX(-50%);
  transition: width 0.18s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 26px;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-button,
.play-button,
.primary-button,
.ghost-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 950;
  line-height: 1;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.account-button {
  cursor: pointer;
  font: inherit;
}

.account-button {
  max-width: 226px;
  padding: 0 14px;
  background: rgba(30, 24, 40, 0.92);
  border-color: var(--line);
  color: #f6efff;
}

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

.ms-mark {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  flex: 0 0 auto;
}

.ms-mark span:nth-child(1) {
  background: #f25022;
}

.ms-mark span:nth-child(2) {
  background: #7fba00;
}

.ms-mark span:nth-child(3) {
  background: #00a4ef;
}

.ms-mark span:nth-child(4) {
  background: #ffb900;
}

.play-button,
.primary-button {
  color: #170e08;
  background: linear-gradient(180deg, #f8d678, var(--gold));
  box-shadow: 0 18px 42px rgba(243, 193, 90, 0.22);
}

.play-button {
  min-width: 92px;
  padding: 0 22px;
}

.primary-button {
  min-width: min(100%, 398px);
  min-height: 66px;
  padding: 0 34px;
  font-size: 21px;
}

.ghost-button {
  min-width: min(100%, 398px);
  min-height: 66px;
  padding: 0 34px;
  color: #f7f0ff;
  background: rgba(16, 13, 22, 0.84);
  border-color: var(--line);
  font-size: 19px;
}

.small-button {
  min-height: 44px;
  padding: 0 18px;
  color: #fff9e6;
  background: rgba(25, 19, 33, 0.9);
  border-color: var(--line-gold);
}

.account-button:hover,
.play-button:hover,
.primary-button:hover,
.ghost-button:hover,
.small-button:hover {
  transform: translateY(-2px);
}

.account-button[data-auth-state="connected"] {
  border-color: var(--line-gold);
  background: rgba(44, 31, 53, 0.96);
  color: #fff6dd;
}

.play-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #170e08;
  position: relative;
  flex: 0 0 auto;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  border-left: 7px solid var(--gold);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.hero {
  max-width: var(--max);
  min-height: calc(100vh - var(--header-height));
  margin: 0 auto;
  padding: clamp(62px, 7vw, 108px) var(--page-x) clamp(54px, 7vw, 92px);
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 96px);
}

.hero-copy,
.section-inner,
.footer-inner {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold);
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(60px, 7.2vw, 104px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: keep-all;
}

h1 span {
  display: block;
  overflow-wrap: normal;
  word-break: keep-all;
}

.hero-lead {
  margin: 24px 0 0;
  max-width: 670px;
  color: #ded6e7;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 4% 8%;
  background: linear-gradient(135deg, rgba(159, 53, 242, 0.28), rgba(243, 193, 90, 0.16));
  filter: blur(50px);
}

body.home-page .hero-visual::before {
  display: none;
}

.hero-visual img {
  position: relative;
  width: min(100%, 820px);
  max-height: min(64vh, 700px);
  object-fit: contain;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.44));
}

.section {
  padding: clamp(62px, 7vw, 106px) var(--page-x);
  border-top: 1px solid var(--line);
}

.section-alt {
  background: rgba(12, 10, 16, 0.78);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 950;
  text-transform: uppercase;
}

.section-copy {
  margin: 18px 0 0;
  max-width: 760px;
  color: #d0c7d8;
  font-size: 18px;
  line-height: 1.55;
}

.guide-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-card,
.download-card,
.feature-card,
.patch-card,
.contact-card,
.vote-card {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(34, 25, 45, 0.94), rgba(18, 14, 24, 0.94));
  border: 1px solid var(--line);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.24);
}

.guide-card {
  min-height: 250px;
  padding: 28px;
}

.step-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #160f08;
  background: var(--gold);
  font-size: 20px;
  font-weight: 950;
}

.guide-card h3,
.feature-card h3,
.contact-card h3,
.vote-card h3 {
  margin: 26px 0 12px;
  font-size: 25px;
}

.guide-card p,
.feature-card p,
.contact-card p,
.vote-card p {
  margin: 0;
  color: #cfc5d8;
  line-height: 1.6;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.download-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.download-card {
  min-height: 0;
  padding: 28px;
}

.download-card.is-featured {
  border-color: var(--line-gold);
  box-shadow: 0 30px 80px rgba(243, 193, 90, 0.12);
}

.download-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.download-kicker {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.download-card h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
}

.download-version {
  min-width: 98px;
  padding: 10px 14px;
  border-radius: 999px;
  text-align: center;
  color: #fff7df;
  background: rgba(30, 23, 38, 0.92);
  border: 1px solid var(--line-gold);
  font-size: 14px;
  font-weight: 950;
}

.download-card p {
  margin: 18px 0 0;
  color: #d0c7d8;
  line-height: 1.6;
}

.download-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-meta span {
  padding: 8px 10px;
  border-radius: 8px;
  color: #efe6f7;
  background: rgba(195, 146, 255, 0.1);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
}

.download-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-actions .small-button {
  flex: 1 1 220px;
}

.archive-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.archive-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: rgba(8, 7, 11, 0.62);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.archive-row:hover {
  transform: translateY(-2px);
  border-color: var(--line-gold);
  background: rgba(20, 15, 27, 0.82);
}

.archive-row strong,
.archive-row span {
  display: block;
}

.archive-row strong {
  color: #fff7df;
  font-size: 16px;
}

.archive-row span {
  color: #d0c7d8;
  font-size: 14px;
  text-align: right;
}

.news-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.news-card {
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-gold);
  background: var(--panel-strong);
}

.news-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  object-fit: cover;
  background: #0b0a0e;
}

.news-media,
.patch-hero-image {
  position: relative;
}

.news-media > img:not(.media-logo) {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.7;
  object-fit: cover;
  background: #0b0a0e;
}

.new-horizon-media::after,
.patch-hero-image.new-horizon-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 7, 11, 0.08), rgba(8, 7, 11, 0.56));
  pointer-events: none;
}

.media-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: min(72%, 420px);
  max-height: 76%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.52));
}

.patch-hero-image .media-logo {
  top: 56%;
  width: min(42%, 560px);
  max-height: 58%;
}

.news-body {
  min-height: 236px;
  padding: 26px 24px 22px;
  display: flex;
  flex-direction: column;
}

.news-body h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.12;
  font-weight: 950;
}

.news-body p {
  margin: 18px 0 0;
  color: #c6bdcf;
  font-size: 16px;
  line-height: 1.45;
}

.read-row {
  margin-top: auto;
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
  font-size: 16px;
  font-weight: 800;
}

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(62px, 7vw, 104px) var(--page-x) clamp(40px, 5vw, 68px);
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero .section-copy {
  max-width: 860px;
}

body.vote-page .page-hero {
  padding-bottom: clamp(28px, 4vw, 46px);
}

body.vote-page .section-alt {
  padding-top: clamp(34px, 4vw, 54px);
}

.feature-grid,
.contact-grid,
.vote-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card,
.contact-card {
  min-height: 220px;
  padding: 28px;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.support-info .section-copy {
  max-width: 760px;
}

.support-mini-grid {
  grid-template-columns: 1fr;
  margin-top: 34px;
}

.support-mini-grid .contact-card {
  min-height: 0;
}

.support-mini-grid .contact-card h3 {
  margin-top: 0;
}

.support-form {
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(34, 25, 45, 0.96), rgba(13, 10, 18, 0.96)),
    var(--panel);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  gap: 9px;
}

.field-row + .field-row,
.form-grid + .field-row {
  margin-top: 18px;
}

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

.field-row label {
  color: #fff7df;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.field-row input,
.field-row select,
.field-row textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(8, 7, 11, 0.78);
  font: inherit;
}

.field-row input,
.field-row select {
  min-height: 52px;
  padding: 0 14px;
}

.field-row textarea {
  min-height: 170px;
  padding: 14px;
  resize: vertical;
}

.field-row input:focus,
.field-row select:focus,
.field-row textarea:focus {
  outline: 2px solid rgba(243, 193, 90, 0.5);
  border-color: var(--line-gold);
}

.support-form .primary-button {
  width: 100%;
  margin-top: 22px;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: #d8cfe0;
  font-weight: 750;
}

.form-status.is-success {
  color: #fff1c7;
}

.form-status.is-error {
  color: #ffb4b4;
}

.vote-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.vote-card {
  min-height: 280px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.vote-rank {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #160d08;
  background: linear-gradient(180deg, #f8d678, var(--gold));
  font-weight: 950;
}

.vote-card .small-button {
  width: 100%;
  margin-top: auto;
}

.admin-section {
  padding-top: clamp(34px, 4vw, 58px);
}

.admin-status,
.admin-panel {
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(34, 25, 45, 0.96), rgba(13, 10, 18, 0.96)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.24);
}

.admin-status {
  max-width: 720px;
  padding: 30px;
}

.admin-status h2,
.admin-panel h2,
.admin-toolbar h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
}

.admin-status p {
  color: #d8cfe0;
  line-height: 1.6;
}

.admin-status .primary-button,
.admin-status .ghost-button {
  margin-top: 18px;
}

.admin-toolbar {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

.admin-panel {
  padding: 26px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-count {
  min-width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #160d08;
  background: linear-gradient(180deg, #f8d678, var(--gold));
  font-weight: 950;
}

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

.ticket-card {
  padding: 20px;
  border-radius: 8px;
  background: rgba(8, 7, 11, 0.62);
  border: 1px solid var(--line);
}

.ticket-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ticket-card h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.ticket-card-head p,
.ticket-meta,
.empty-state {
  margin: 6px 0 0;
  color: #cfc5d8;
}

.ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 750;
}

.ticket-meta span {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(195, 146, 255, 0.1);
  border: 1px solid var(--line);
}

.ticket-message {
  margin: 16px 0 0;
  color: #f3edf8;
  line-height: 1.65;
  white-space: pre-wrap;
}

.admin-add-form .primary-button {
  width: 100%;
  margin-top: 16px;
}

.admin-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.admin-list-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(8, 7, 11, 0.62);
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 850;
}

.admin-self {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.patch-hero-image {
  margin-top: 34px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.patch-hero-image > img:not(.media-logo) {
  width: 100%;
  max-height: 620px;
  display: block;
  object-fit: cover;
}

.patch-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 82px) var(--page-x);
}

.news-list-section {
  padding-top: clamp(36px, 4vw, 54px);
}

.news-list-section .news-grid {
  margin-top: 0;
}

.patch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 34px;
}

.meta-pill {
  border-radius: 999px;
  border: 1px solid var(--line-gold);
  padding: 10px 14px;
  color: #fff7df;
  background: rgba(30, 23, 38, 0.78);
  font-weight: 850;
}

.patch-section {
  margin-top: 24px;
  padding: 28px;
  border-radius: 8px;
  background: rgba(18, 14, 24, 0.92);
  border: 1px solid var(--line);
}

.patch-section h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
}

.patch-list {
  margin: 0;
  padding-left: 22px;
  color: #d7cedf;
  font-size: 17px;
  line-height: 1.65;
}

.patch-list li + li {
  margin-top: 10px;
}

.footer {
  padding: 34px var(--page-x) 44px;
  color: var(--muted-dark);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 3, 7, 0.72);
  backdrop-filter: blur(12px);
}

.auth-modal[hidden] {
  display: none;
}

.auth-dialog {
  position: relative;
  width: min(100%, 560px);
  padding: 34px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(37, 24, 50, 0.98), rgba(12, 10, 16, 0.98)),
    var(--panel);
  border: 1px solid var(--line-gold);
  box-shadow: var(--shadow);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.auth-dialog h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  text-transform: uppercase;
}

.auth-message {
  margin: 18px 0 0;
  color: #d8cfe0;
  line-height: 1.55;
}

.auth-code-box {
  margin-top: 24px;
  padding: 22px;
  border-radius: 8px;
  text-align: center;
  background: rgba(8, 7, 11, 0.72);
  border: 1px solid var(--line);
}

.auth-code-label {
  display: block;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.auth-code-box strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(34px, 7vw, 58px);
  letter-spacing: 0.08em;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.auth-actions .primary-button,
.auth-actions .ghost-button {
  min-width: min(100%, 220px);
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-actions {
    grid-column: 2;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 58px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .news-grid,
  .download-grid,
  .guide-grid,
  .feature-grid,
  .contact-grid,
  .vote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 760px) {
  :root {
    --page-x: 18px;
    --header-height: 146px;
  }

  .site-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text {
    display: inline;
  }

  .header-actions {
    gap: 8px;
  }

  .account-button {
    width: 52px;
    padding: 0;
  }

  .account-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .play-button {
    min-width: 76px;
    padding: 0 16px;
  }

  .main-nav {
    gap: 24px;
  }

  .hero {
    padding-top: 42px;
    gap: 18px;
  }

  h1 {
    font-size: clamp(54px, 16vw, 78px);
  }

  .hero-actions,
  .guide-actions {
    flex-direction: column;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .hero-visual {
    min-height: 320px;
  }

  .hero-visual img {
    max-height: 390px;
  }

  .news-grid,
  .download-grid,
  .guide-grid,
  .feature-grid,
  .contact-grid,
  .vote-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .support-mini-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .admin-toolbar,
  .admin-panel-head,
  .ticket-card-head,
  .download-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .archive-row span {
    text-align: left;
  }

  .news-body {
    min-height: 188px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(48px, 14vw, 54px);
  }

  .header-inner,
  .hero-copy,
  .section-inner,
  .footer-inner {
    max-width: 354px;
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    transform: translateX(-44px);
  }

  .header-actions .play-button {
    display: none;
  }

  .main-nav {
    max-width: 354px;
  }

  .hero-copy {
    width: 100%;
  }

  .primary-button,
  .ghost-button {
    max-width: 354px;
  }
}
