:root {
  color-scheme: dark;
  --bg: #050407;
  --panel: rgba(16, 12, 24, 0.88);
  --panel-solid: #130f1c;
  --text: #f4efff;
  --muted: #b7a9c6;
  --line: rgba(255, 255, 255, 0.13);
  --violet: #9f35ff;
  --violet-hot: #d844ff;
  --cyan: #43d3ff;
  --silver: #d9d6e1;
  --warning: #ffcc5c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 12%, rgba(159, 53, 255, 0.22), transparent 30rem),
    radial-gradient(circle at 92% 28%, rgba(67, 211, 255, 0.1), transparent 24rem),
    linear-gradient(180deg, #07040b 0%, #0b0710 45%, #050407 100%);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

.ticker {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  gap: 34px;
  align-items: center;
  min-height: 32px;
  overflow: hidden;
  padding: 0 clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(216, 68, 255, 0.28);
  background: #07040b;
  color: #e7d7ff;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.ticker span {
  position: relative;
  white-space: nowrap;
}

.ticker span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 12px;
  background: var(--violet-hot);
  box-shadow: 0 0 14px var(--violet-hot);
  vertical-align: 1px;
}

.ticker .server-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 204, 92, 0.14);
  color: #ffe6a9;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.ticker .server-status-pill::before {
  flex: 0 0 auto;
  background: var(--warning);
  box-shadow: 0 0 14px var(--warning);
}

.ticker .server-status-pill.is-live {
  border-color: rgba(47, 214, 128, 0.52);
  background: rgba(47, 214, 128, 0.16);
  color: #b9ffd8;
}

.ticker .server-status-pill.is-live::before {
  background: #2fd680;
  box-shadow: 0 0 14px #2fd680;
}

.ticker .server-status-pill.is-down {
  border-color: rgba(255, 73, 73, 0.58);
  background: rgba(255, 73, 73, 0.16);
  color: #ffc2c2;
}

.ticker .server-status-pill.is-down::before {
  background: #ff4949;
  box-shadow: 0 0 14px #ff4949;
}

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

.site-header {
  position: fixed;
  inset: 32px 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(5, 4, 7, 0.88), rgba(5, 4, 7, 0.46));
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 4, 7, 0.86);
  border-color: var(--line);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(216, 68, 255, 0.5);
  background: linear-gradient(135deg, #170922, #7c22d8 58%, #f1dfff);
  box-shadow: 0 0 30px rgba(159, 53, 255, 0.4);
  color: #fff;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

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

.brand strong {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

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

.nav a {
  min-height: 42px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.nav .nav-cta {
  margin-left: 4px;
  color: #fff;
  background: rgba(159, 53, 255, 0.22);
  border: 1px solid rgba(216, 68, 255, 0.46);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88vh;
  padding: 174px clamp(18px, 5vw, 72px) 92px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.12) saturate(1.14);
  transform: scale(1.02);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(5, 4, 7, 0.92) 0%, rgba(5, 4, 7, 0.56) 42%, rgba(5, 4, 7, 0.16) 100%),
    linear-gradient(0deg, rgba(5, 4, 7, 0.93) 0%, rgba(5, 4, 7, 0.08) 46%, rgba(5, 4, 7, 0.56) 100%);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: Rajdhani, Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(62px, 13vw, 156px);
  line-height: 0.78;
  text-shadow: 0 0 34px rgba(159, 53, 255, 0.52), 0 8px 0 rgba(0, 0, 0, 0.35);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.92;
}

h3 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1;
}

.hero-copy,
.section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-copy {
  max-width: 620px;
  color: #e9dff4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 20px;
  border: 1px solid transparent;
  font-weight: 800;
  text-transform: uppercase;
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #7a20d8, #d844ff 58%, #43d3ff);
  box-shadow: 0 16px 40px rgba(159, 53, 255, 0.34);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.button.full {
  width: 100%;
}

.inline-button {
  width: max-content;
  margin-top: 12px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.status-strip article {
  min-height: 108px;
  padding: 24px clamp(18px, 3vw, 36px);
  background: rgba(11, 7, 16, 0.92);
}

.status-strip span,
.status-strip strong {
  display: block;
}

.status-strip span,
dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-strip strong {
  margin-top: 8px;
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 26px;
  line-height: 1;
}

.section {
  padding: 92px clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

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

.feature-stack article {
  display: grid;
  grid-template-columns: 46px minmax(0, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.feature-stack span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(67, 211, 255, 0.28);
  color: var(--cyan);
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 800;
}

.feature-stack strong {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 25px;
  line-height: 1;
  text-transform: uppercase;
}

.feature-stack p {
  margin: 0;
  font-size: 15px;
}

.download-panel,
.card,
.table-wrap,
.board-shell,
.event-slider {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 15, 34, 0.94), rgba(10, 8, 14, 0.94));
  box-shadow: var(--shadow);
}

.download-panel {
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-weight: 800;
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

dl {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

dd {
  margin: 0;
  color: var(--silver);
  font-weight: 800;
}

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

.board-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.board-status.is-error {
  color: #ff8a8a;
}

.boards {
  background:
    linear-gradient(180deg, rgba(159, 53, 255, 0.08), transparent 55%),
    rgba(5, 4, 7, 0.56);
}

.board-shell {
  overflow: hidden;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.tab {
  min-height: 58px;
  border: 0;
  background: rgba(10, 8, 14, 0.94);
  color: var(--muted);
  font: 800 15px Inter, Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.tab:hover,
.tab:focus-visible,
.tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(159, 53, 255, 0.35), rgba(67, 211, 255, 0.1));
}

.board-panel {
  display: none;
}

.board-panel.is-active {
  display: block;
}

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

.card {
  min-height: 240px;
  padding: 24px;
}

.tag {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 7px 10px;
  border: 1px solid rgba(67, 211, 255, 0.34);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card p {
  margin-bottom: 0;
  font-size: 16px;
}

.event-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.event-copy {
  max-width: 620px;
}

.event-slider {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.slides,
.slide {
  min-height: 360px;
}

.slide {
  display: none;
  align-content: end;
  padding: 36px;
  background:
    linear-gradient(180deg, transparent, rgba(5, 4, 7, 0.78)),
    radial-gradient(circle at 78% 20%, rgba(67, 211, 255, 0.18), transparent 16rem),
    linear-gradient(135deg, rgba(159, 53, 255, 0.38), rgba(255, 204, 92, 0.1));
}

.slide.is-active {
  display: grid;
}

.slide span {
  width: max-content;
  margin-bottom: 14px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 204, 92, 0.48);
  color: var(--warning);
  font-weight: 800;
  text-transform: uppercase;
}

.slide p {
  max-width: 520px;
  margin-bottom: 0;
  color: #eee6f8;
}

.slide-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 4, 7, 0.72);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  transform: translateY(-50%);
  cursor: pointer;
}

.slide-arrow:hover,
.slide-arrow:focus-visible {
  border-color: rgba(216, 68, 255, 0.7);
  background: rgba(159, 53, 255, 0.38);
}

.slide-arrow[data-slide-prev] {
  left: 16px;
}

.slide-arrow[data-slide-next] {
  right: 16px;
}

.forum-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(159, 53, 255, 0.16), rgba(67, 211, 255, 0.07)),
    #0c0712;
  border-block: 1px solid var(--line);
}

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

.forum-grid a {
  display: block;
  min-height: 104px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.forum-grid strong,
.forum-grid span {
  display: block;
}

.forum-grid strong {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

.forum-grid span {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 58vh;
  padding: 174px clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 4, 7, 0.94), rgba(5, 4, 7, 0.48)),
    url("assets/images/nitto_legends_v2_hero_remake.png") center / cover;
}

.forum-hero {
  background:
    linear-gradient(90deg, rgba(5, 4, 7, 0.94), rgba(5, 4, 7, 0.58)),
    url("assets/images/nitto_legends_v2_hero_remake.png") center / cover;
}

.page-hero > div {
  width: min(860px, 100%);
}

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

.category-card {
  display: grid;
  gap: 16px;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 15, 34, 0.94), rgba(10, 8, 14, 0.94));
  box-shadow: var(--shadow);
}

.category-card span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(67, 211, 255, 0.3);
  color: var(--cyan);
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 800;
}

.category-card strong {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.thread-list {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.thread-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
  padding: 22px;
}

.thread-list strong {
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 28px;
  text-transform: uppercase;
}

.thread-list span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.form-section {
  display: grid;
  place-items: start center;
}

.account-form {
  width: min(860px, 100%);
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(23, 15, 34, 0.94), rgba(10, 8, 14, 0.94));
  box-shadow: var(--shadow);
}

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

.account-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font: 700 16px Inter, Arial, sans-serif;
}

.account-form input:focus {
  outline: 2px solid rgba(67, 211, 255, 0.45);
  outline-offset: 2px;
}

.check-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 12px !important;
  margin: 20px 0;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px !important;
}

.form-note.is-error {
  color: #ff8a8a;
}

.crew-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.6fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(159, 53, 255, 0.19), rgba(67, 211, 255, 0.08)),
    #0c0712;
  border-block: 1px solid var(--line);
}

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

.crew-list span {
  min-height: 58px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  font-family: Rajdhani, Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
}

.table-wrap {
  max-height: 520px;
  overflow-x: auto;
  overflow-y: auto;
  box-shadow: none;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #120d1b;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

td {
  color: var(--silver);
  font-weight: 800;
}

tbody tr:hover {
  background: rgba(159, 53, 255, 0.08);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    background: rgba(7, 5, 10, 0.96);
    box-shadow: var(--shadow);
  }

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

  .nav a {
    min-height: 48px;
  }

  .status-strip,
  .news-grid,
  .split,
  .crew-band,
  .event-section,
  .forum-section,
  .category-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    display: block;
  }
}

@media (max-width: 560px) {
  .ticker {
    gap: 22px;
    min-height: 30px;
    font-size: 12px;
  }

  .site-header {
    inset: 30px 0 auto;
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 82vh;
    padding: 148px 18px 58px;
  }

  .page-hero {
    min-height: 48vh;
    padding: 138px 18px 54px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 86px);
  }

  .hero-copy,
  .section p {
    font-size: 16px;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .inline-button {
    width: 100%;
  }

  .status-strip,
  .crew-list,
  .tab-list,
  .forum-grid {
    grid-template-columns: 1fr;
  }

  .feature-stack article {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .feature-stack p {
    grid-column: 1 / -1;
  }

  .event-slider,
  .slides,
  .slide {
    min-height: 320px;
  }

  .slide {
    padding: 30px 24px;
  }

  .section {
    padding: 64px 18px;
  }

  .footer {
    display: block;
  }

  .footer span {
    display: block;
    margin-bottom: 8px;
  }
}
