:root {
  color-scheme: dark;
  --bg: #0b1421;
  --panel: #131f2f;
  --panel2: #182639;
  --line: #304258;
  --text: #f4f6f8;
  --muted: #b6c3d0;
  --cyan: #38d6f4;
  --gold: #ffd363;
  --blue: #3d60d4;
  --wrap: 1320px;
  font-family: "DM Sans", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-width: 320px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
}
.wrap {
  width: min(calc(100% - 48px), var(--wrap));
  margin-inline: auto;
}
.site-header {
  height: 82px;
  background: #111c2b;
  border-bottom: 1px solid #26384c;
  position: relative;
  z-index: 10;
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  width: 250px;
  display: flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 68px;
  width: auto;
  object-fit: contain;
  object-position: left;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex: 1;
}
.main-nav a {
  font-size: 14px;
  color: #e0e7ee;
  position: relative;
  padding: 29px 0;
}
.main-nav a.active,
.main-nav a:hover {
  color: var(--cyan);
}
.main-nav a.active:after {
  content: "";
  height: 2px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15px;
  background: var(--cyan);
}
.header-discord {
  background: #3b58cf;
  border: 1px solid #5b73e3;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}
.header-discord:hover {
  background: #4c68e0;
}
.menu-button {
  display: none;
}
.hero {
  min-height: 565px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #263048 url("/assets/banner.png") center 45% / cover no-repeat;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 12, 23, 0.04) 22%,
    rgba(8, 17, 28, 0.16) 43%,
    rgba(8, 17, 28, 0.87) 100%
  );
}
.hero-content {
  position: relative;
  padding: 0 16px 46px;
  max-width: 900px;
}
.hero-logo {
  width: min(530px, 78vw);
  max-height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px #091423a8);
  margin-bottom: 8px;
}
.hero h1 {
  font-family: Rajdhani, system-ui, sans-serif;
  font-size: clamp(25px, 3.2vw, 44px);
  line-height: 1.05;
  margin: 0 0 21px;
  font-weight: 700;
  text-shadow: 0 2px 13px #08111b;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 13px 21px;
  font-weight: 800;
  border: 1px solid transparent;
  min-height: 52px;
}
.button.gold {
  color: #111b27;
  background: linear-gradient(#ffe381, #ffc443);
  border-color: #ffeb99;
}
.button.gold:hover {
  filter: brightness(1.07);
}
.button.ghost {
  background: #172b45d9;
  border: 1px solid #63b8eb;
  color: white;
}
.button.ghost:hover {
  background: #254264;
}
.button.small {
  min-height: 39px;
  padding: 7px 14px;
  font-size: 13px;
}
.button.secondary {
  background: #1e3045;
  border-color: #3d526a;
  color: white;
}
.button.danger {
  color: #ffd7d7;
  border-color: #ad5a5a;
  background: #3b242b;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 24px 0 70px;
}
.feature-card,
.panel,
.wiki-card,
.stat-card {
  border: 1px solid #385069;
  background: linear-gradient(145deg, #172436, #111d2b);
  border-radius: 8px;
  overflow: hidden;
}
.feature-art {
  height: 155px;
  background: #1d3047 url("/assets/banner.png") center/cover no-repeat;
  position: relative;
}
.feature-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, #13213166);
}
.feature-art.art-wiki {
  background-position: 0 58%;
}
.feature-art.art-ranks {
  background-position: 58% 60%;
}
.feature-art.art-news {
  background-position: 100% 60%;
}
.feature-body {
  padding: 21px 24px 27px;
}
.feature-title {
  display: flex;
  align-items: center;
  gap: 13px;
  font:
    700 26px Rajdhani,
    sans-serif;
  margin: 0 0 14px;
}
.feature-title .icon {
  font-size: 26px;
  color: var(--cyan);
}
.feature-title .arrow {
  margin-left: auto;
  color: var(--cyan);
}
.feature-body p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 14px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}
.page-hero {
  padding: 55px 0 47px;
  border-bottom: 1px solid #2a4058;
  background:
    radial-gradient(circle at 84% 10%, #22506a70, transparent 38%),
    linear-gradient(130deg, #18283a, #101c2c);
}
.page-hero h1 {
  font:
    700 clamp(44px, 5vw, 70px)/1 Rajdhani,
    sans-serif;
  margin: 9px 0 12px;
}
.page-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 750px;
  line-height: 1.55;
  margin: 0;
}
.page-main {
  padding: 32px 0 80px;
  min-height: 55vh;
}
.section-heading {
  font:
    700 30px Rajdhani,
    sans-serif;
  margin: 0 0 18px;
}
.search {
  display: block;
  width: 100%;
  background: #0f1b29;
  color: white;
  border: 1px solid #3c5873;
  border-radius: 8px;
  padding: 14px 17px;
  outline: none;
}
.search:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px #38d6f428;
}
.wiki-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 28px;
}
.sidebar {
  align-self: start;
  position: sticky;
  top: 22px;
}
.sidebar h3 {
  font:
    700 20px Rajdhani,
    sans-serif;
  margin: 0 0 12px;
}
.sidebar a {
  display: block;
  color: #c5d1dc;
  padding: 9px 12px;
  border-left: 2px solid transparent;
}
.sidebar a:hover,
.sidebar a.active {
  color: var(--cyan);
  border-color: var(--cyan);
  background: #173247;
}
.wiki-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.wiki-card {
  padding: 21px;
  min-height: 135px;
}
.wiki-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}
.wiki-card h3 {
  font:
    700 23px Rajdhani,
    sans-serif;
  margin: 7px 0 6px;
}
.wiki-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}
.prose {
  max-width: 850px;
  color: #d2dce6;
  line-height: 1.75;
  font-size: 16px;
}
.prose h2 {
  font:
    700 30px Rajdhani,
    sans-serif;
  color: white;
  margin: 34px 0 8px;
}
.prose p {
  margin: 0 0 17px;
}
.prose ul {
  padding-left: 22px;
}
.prose a {
  color: var(--cyan);
  text-decoration: underline;
}
.back-link {
  color: var(--cyan);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
}
.list {
  display: grid;
  gap: 15px;
}
.post-card {
  padding: 24px;
  border: 1px solid #385069;
  background: #142235;
  border-radius: 8px;
}
.post-card h2 {
  font:
    700 29px Rajdhani,
    sans-serif;
  margin: 5px 0 4px;
}
.post-card p {
  color: #c6d2dd;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 12px 0 0;
}
.meta {
  font-size: 13px;
  color: #a9bbc9;
}
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #082235;
  background: var(--cyan);
  border-radius: 99px;
  padding: 4px 10px;
}
.tab-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.tab {
  border: 1px solid #39536d;
  background: #172739;
  color: #d1dce7;
  padding: 10px 16px;
  border-radius: 7px;
  font-weight: 700;
}
.tab.active {
  color: #101b28;
  background: var(--gold);
  border-color: var(--gold);
}
.leader-table {
  width: 100%;
  border-collapse: collapse;
}
.leader-table th {
  text-align: left;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #9cb3c5;
  border-bottom: 1px solid #40536a;
  padding: 12px;
}
.leader-table td {
  border-bottom: 1px solid #2e4157;
  padding: 15px 12px;
}
.leader-table a {
  color: #fff;
  font-weight: 800;
}
.leader-table a:hover {
  color: var(--cyan);
}
.empty {
  padding: 42px 25px;
  color: #c1cfda;
  text-align: center;
  border: 1px dashed #4a6075;
  border-radius: 8px;
  background: #132132;
}
.empty strong {
  display: block;
  color: white;
  font:
    700 25px Rajdhani,
    sans-serif;
  margin-bottom: 4px;
}
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}
.panel {
  padding: 24px;
}
.panel h2 {
  font:
    700 28px Rajdhani,
    sans-serif;
  margin: 0 0 9px;
}
.panel p {
  color: var(--muted);
  line-height: 1.6;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.support-grid .panel {
  min-height: 145px;
}
.site-footer {
  background: #0d1724;
  border-top: 1px solid #26384c;
}
.footer-inner {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.footer-inner strong {
  font:
    700 22px Rajdhani,
    sans-serif;
  display: block;
}
.footer-inner span {
  display: block;
  color: #9eb1c1;
  font-size: 13px;
}
.footer-inner nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  color: #b4c5d3;
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #172f3f;
  color: #fff;
  border: 1px solid #4fcfe8;
  padding: 12px 18px;
  border-radius: 8px;
  z-index: 30;
  transition: 0.2s;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.admin-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 82px);
}
.admin-side {
  background: #101b29;
  border-right: 1px solid #34495f;
  padding: 25px 15px;
}
.admin-side a {
  display: block;
  padding: 11px 13px;
  color: #c5d1dc;
  border-radius: 6px;
}
.admin-side a.active,
.admin-side a:hover {
  background: #1f354b;
  color: var(--cyan);
}
.admin-content {
  padding: 30px clamp(18px, 4vw, 62px);
  max-width: 1200px;
  width: 100%;
}
.admin-content h1 {
  font:
    700 40px Rajdhani,
    sans-serif;
  margin: 0 0 20px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 17px;
}
.field label {
  font-size: 13px;
  color: #b7c8d7;
  font-weight: 800;
}
.field input,
.field textarea,
.field select {
  background: #0e1b2b;
  border: 1px solid #3c5167;
  color: white;
  border-radius: 6px;
  padding: 11px 13px;
  outline: none;
  width: 100%;
}
.field textarea {
  min-height: 115px;
  resize: vertical;
}
.field small {
  color: #9bafc0;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th,
.admin-table td {
  text-align: left;
  border-bottom: 1px solid #30465a;
  padding: 11px 8px;
}
.admin-table th {
  font-size: 12px;
  color: #a3b8c7;
  text-transform: uppercase;
}
.admin-table button {
  margin-right: 7px;
}
.editor-block {
  padding: 14px;
  border: 1px solid #344b62;
  border-radius: 6px;
  margin: 10px 0;
  background: #15253a;
}
.editor-block input,
.editor-block textarea {
  width: 100%;
  background: #0e1b2b;
  border: 1px solid #405a70;
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin: 8px 0;
}
.editor-block textarea {
  min-height: 70px;
}
.notice {
  padding: 13px 16px;
  background: #172f42;
  border-left: 3px solid var(--cyan);
  color: #c9dce8;
  margin-bottom: 20px;
}
.error {
  color: #ffb8b8;
}
.admin-login {
  max-width: 430px;
  margin: 70px auto;
  padding: 30px;
}
.admin-login h1 {
  font:
    700 40px Rajdhani,
    sans-serif;
  margin: 0 0 7px;
}
.admin-login p {
  color: var(--muted);
}
.admin-login .button {
  width: 100%;
}
@media (max-width: 1150px) {
  .main-nav {
    gap: 16px;
  }
  .brand {
    width: 205px;
  }
  .brand img {
    height: 59px;
  }
  .header-inner {
    gap: 18px;
  }
}
@media (max-width: 920px) {
  .menu-button {
    display: block;
    margin-left: auto;
    color: white;
    background: transparent;
    border: 1px solid #405873;
    border-radius: 6px;
    padding: 7px 11px;
    font-size: 22px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 81px;
    left: 0;
    right: 0;
    background: #111d2b;
    padding: 12px 24px 20px;
    box-shadow: 0 20px 30px #0007;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 10px;
  }
  .main-nav a.active:after {
    display: none;
  }
  .header-discord {
    display: none;
  }
  .card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid .feature-card:last-child {
    grid-column: 1/-1;
  }
  .wiki-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .sidebar h3 {
    width: 100%;
  }
  .sidebar a {
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 8px;
  }
  .sidebar a.active {
    border-bottom-color: var(--cyan);
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-side {
    display: flex;
    overflow: auto;
    gap: 4px;
    padding: 9px;
    white-space: nowrap;
  }
  .admin-side a {
    flex: none;
  }
}
@media (max-width: 650px) {
  .wrap {
    width: min(calc(100% - 30px), var(--wrap));
  }
  .site-header {
    height: 70px;
  }
  .main-nav {
    top: 69px;
  }
  .brand {
    width: 185px;
  }
  .brand img {
    height: 57px;
  }
  .hero {
    min-height: 500px;
    background-position: 52% center;
  }
  .hero-content {
    padding-bottom: 35px;
  }
  .hero-logo {
    width: 82vw;
    max-height: 230px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero-actions .button {
    width: 100%;
  }
  .card-grid,
  .wiki-index,
  .split,
  .support-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .card-grid .feature-card:last-child {
    grid-column: auto;
  }
  .footer-inner {
    display: block;
  }
  .footer-inner nav {
    margin-top: 20px;
  }
  .page-hero {
    padding: 37px 0;
  }
  .page-main {
    padding: 23px 0 60px;
  }
  .feature-art {
    height: 130px;
  }
}
.brand {
  gap: 4px;
  overflow: hidden;
}
.brand img {
  width: 60px;
  height: 60px;
  flex: none;
}
.brand span {
  font:
    700 25px/0.79 Rajdhani,
    sans-serif;
  letter-spacing: 0.02em;
  color: #fff4d7;
  text-shadow: 2px 2px #071321;
}
.brand b {
  color: #ffd458;
}
.hero-logo {
  display: none;
}
.hero-content {
  padding-bottom: 49px;
}
.hero h1 {
  margin-top: 0;
}
@media (max-width: 650px) {
  .brand img {
    width: 54px;
    height: 54px;
  }
  .brand span {
    font-size: 22px;
  }
}
.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #40576c;
  border-radius: 6px;
  background: #101d2b;
  font-size: 13px;
}
.check input {
  accent-color: #38d6f4;
}
@media (max-width: 920px) {
  .admin-side {
    align-items: center;
  }
  .admin-side a {
    padding: 10px 12px;
  }
}
.profile-banner {
  max-width: 850px;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #385069;
}
.profile-banner img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}
.player-panel {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.player-skin {
  width: 100px;
  image-rendering: pixelated;
}
@media (max-width: 650px) {
  .player-panel {
    display: block;
  }
  .player-skin {
    margin-bottom: 20px;
  }
}
.feature-art {
  background-image: url("/assets/card-art-source.png");
  background-size: 338% auto;
  background-repeat: no-repeat;
  background-position-y: 76%;
}
.feature-art.art-wiki {
  background-position-x: 5%;
}
.feature-art.art-ranks {
  background-position-x: 50%;
}
.feature-art.art-news {
  background-position-x: 95%;
}
@media (max-width: 650px) {
  .hero {
    min-height: 510px;
    background-color: #26334b;
    background-size: auto 200px;
    background-position: center 105px;
    background-repeat: no-repeat;
  }
  .hero:before {
    background: linear-gradient(
      180deg,
      #162536 0%,
      transparent 19%,
      transparent 46%,
      #0d1b2c 75%,
      #0d1b2c 100%
    );
  }
  .hero-content {
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: 29px;
    margin-bottom: 19px;
  }
  .feature-art {
    height: 118px;
    background-position-y: 78%;
  }
}
.feature-art.art-wiki {
  background-position: 5% 76%;
}
.feature-art.art-ranks {
  background-position: 50% 76%;
}
.feature-art.art-news {
  background-position: 95% 76%;
}
@media (max-width: 650px) {
  .hero {
    background-size: auto 175px;
    background-position: center 30px;
  }
  .feature-art.art-wiki {
    background-position: 5% 78%;
  }
  .feature-art.art-ranks {
    background-position: 50% 78%;
  }
  .feature-art.art-news {
    background-position: 95% 78%;
  }
}
.feature-art.art-wiki {
  background-position: 5% 74%;
}
.feature-art.art-ranks {
  background-position: 50% 74%;
}
.feature-art.art-news {
  background-position: 95% 74%;
}
@media (max-width: 650px) {
  .feature-art.art-wiki {
    background-position: 5% 74%;
  }
  .feature-art.art-ranks {
    background-position: 50% 74%;
  }
  .feature-art.art-news {
    background-position: 95% 74%;
  }
}
@media (min-width: 651px) {
  .hero {
    background-size: 100% auto;
    background-position: center top;
    background-color: #162536;
  }
  .hero-content {
    padding-bottom: 28px;
  }
}
.feature-art {
  height: auto;
  aspect-ratio: 3/1;
  background-image: url("/assets/card-scenes.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
}
.feature-art.art-wiki {
  background-position: center top;
}
.feature-art.art-ranks {
  background-position: center center;
}
.feature-art.art-news {
  background-position: center bottom;
}
@media (max-width: 650px) {
  .feature-art {
    height: auto;
  }
  .feature-art.art-wiki {
    background-position: center top;
  }
  .feature-art.art-ranks {
    background-position: center center;
  }
  .feature-art.art-news {
    background-position: center bottom;
  }
}
.brand.custom-logo img {
  width: auto;
  max-width: 230px;
  height: 60px;
  object-fit: contain;
}
.brand.custom-logo span {
  display: none;
}
