:root {
  --bg: #071323;
  --blue: #2b85ff;
  --cyan: #68d6ff;
  --white: #f3f7ff;
  --muted: #aabbd0;
  --panel: rgba(7, 19, 36, 0.83);
  --line: rgba(164, 200, 255, 0.17);
  --font: "Inter", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #071323 url("/assets/background.png") center 42% / cover fixed
    no-repeat;
  color: var(--white);
  font-family: var(--font);
  position: relative;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 10, 22, 0.42),
    rgba(3, 11, 24, 0.68) 34%,
    #061322 82%
  );
  z-index: -1;
}
.shade {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 18%,
    rgba(25, 109, 231, 0.1),
    transparent 48%
  );
  pointer-events: none;
  z-index: -1;
}
.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1160px) / 2));
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 5;
}
.top-left {
  display: flex;
  gap: 13px;
  align-items: center;
}
.account-link {
  font: 600 12px var(--font);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #d7e7fa;
  background: rgba(8, 19, 36, 0.55);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 7px;
  cursor: pointer;
}
.account-link:hover,
.secondary:hover {
  border-color: #62b5ff;
  color: white;
}
.discord {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #5865f2;
  border-radius: 12px;
  box-shadow: 0 6px 20px #101c5b88;
  transition: 0.2s;
}
.discord:hover {
  transform: translateY(-2px);
  background: #7280ff;
}
.discord svg {
  width: 23px;
  height: 23px;
}
.serverbar {
  position: relative;
  padding: 77px 16px 19px;
  text-align: center;
}
.ipline {
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.11em;
}
.ip-label {
  font-weight: 600;
  color: #d5e8ff;
}
.ipline strong {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: 0.04em;
  color: white;
  text-shadow: 0 0 16px #5baaff;
}
.copy-btn {
  font-size: 9px;
  letter-spacing: 0.11em;
  font-weight: 800;
  background: #2178e8;
  border: 0;
  color: white;
  padding: 6px 9px;
  border-radius: 4px;
  cursor: pointer;
}
.copy-btn:hover {
  background: #52b3ff;
}
.copy-status {
  width: 43px;
  text-align: left;
  font-size: 10px;
  text-transform: none;
  color: #9fffc2;
  letter-spacing: 0;
}
.online {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: #e1eafa;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.online strong {
  font-size: 11px;
  color: #91d7ff;
}
.online small {
  font-size: 9px;
  color: #8ca1b8;
  letter-spacing: 0;
  font-weight: 500;
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #44ea9b;
  box-shadow: 0 0 10px #44ea9b;
}
.navbar {
  height: 50px;
  width: min(100% - 32px, 760px);
  margin: 0 auto 31px;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  background: rgba(7, 17, 32, 0.8);
  border: 1px solid rgba(178, 214, 255, 0.16);
  border-radius: 9px;
  box-shadow: 0 12px 32px #0208104f;
  backdrop-filter: blur(12px);
}
.navitem {
  height: 38px;
  padding: 0 21px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #aebdd0;
  font: 700 11px var(--font);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.18s;
}
.navitem:hover {
  color: white;
  background: #ffffff0d;
}
.navitem.active {
  color: white;
  background: linear-gradient(135deg, #2375df, #2d98ef);
  box-shadow: 0 4px 16px #1576e86b;
}
main {
  width: min(100% - 36px, 1120px);
  margin: 0 auto;
  min-height: 480px;
}
.page {
  display: none;
  animation: fade 0.3s ease;
}
.page.active {
  display: block;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero {
  text-align: center;
  min-height: 320px;
  padding: 31px 10px 40px;
}
.eyebrow {
  color: #7fc6ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.brand-logo {
  display: block;
  width: min(460px, 85vw);
  height: auto;
  max-height: 190px;
  object-fit: contain;
  margin: 12px auto 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 10px 30px #1679e85c);
}
.hero-tag {
  margin: 8px 0 22px;
  color: #e1eafb;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.primary {
  border: 0;
  background: linear-gradient(110deg, #1678ef, #36a6fc);
  color: white;
  border-radius: 6px;
  padding: 14px 21px;
  font: 800 10px var(--font);
  letter-spacing: 0.1em;
  box-shadow: 0 9px 24px #0878ed40;
  cursor: pointer;
  transition: 0.2s;
}
.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.13);
  box-shadow: 0 12px 28px #0878ed72;
}
.primary span {
  font-size: 15px;
  margin-left: 14px;
}
.glass {
  background: linear-gradient(
    140deg,
    rgba(10, 25, 45, 0.88),
    rgba(7, 19, 35, 0.78)
  );
  border: 1px solid var(--line);
  border-radius: 10px;
  backdrop-filter: blur(11px);
  box-shadow: 0 16px 38px #0208124f;
}
.home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
}
.welcome,
.quick {
  padding: 27px 30px;
  min-height: 202px;
}
.welcome h1,
.page-heading h1,
.admin-heading h1,
.store-hero h1 {
  font: 800 42px/1 var(--display);
  letter-spacing: 0.06em;
  margin: 10px 0 8px;
}
.welcome h1 span {
  color: #51aaff;
}
.welcome p,
.page-heading p {
  color: #aebdd0;
  font-size: 12px;
  line-height: 1.7;
  margin: 0;
}
.server-address {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.server-address code {
  font-size: 12px;
  color: #a4dcff;
  background: #142940;
  padding: 9px 12px;
  border-radius: 5px;
}
.server-address span {
  font-size: 9px;
  color: #7990a9;
  letter-spacing: 0.12em;
}
.quick h2 {
  font-size: 15px;
  margin: 10px 0;
}
.quick-link {
  width: 100%;
  padding: 9px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid #ffffff12;
  color: #cbd9eb;
  text-align: left;
  font-size: 11px;
  cursor: pointer;
}
.quick-link span {
  float: right;
  color: #61bdff;
  font-size: 16px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin: 42px 0 14px;
}
.section-title h2,
.page-heading h1 {
  margin: 6px 0 0;
  font: 700 31px var(--display);
  letter-spacing: 0.03em;
}
.text-button {
  color: #88c9ff;
  background: none;
  border: 0;
  cursor: pointer;
  font: 600 11px var(--font);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 18px 0 45px;
}
.post-card {
  overflow: hidden;
}
.post-card img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: cover;
}
.post-body {
  padding: 17px;
}
.post-meta {
  display: flex;
  justify-content: space-between;
  color: #83bce8;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-body p {
  color: #d2dceb;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.empty-state {
  grid-column: 1/-1;
  color: #92a4ba;
  padding: 25px 0;
  font-size: 12px;
}
.page-heading {
  text-align: center;
  padding: 31px 10px 24px;
}
.page-heading h1 {
  font-size: 40px;
}
.page-heading p {
  max-width: 590px;
  margin: 10px auto 0;
}
.form-card {
  max-width: 720px;
  margin: 0 auto 55px;
  padding: 25px 29px;
}
.form-card label,
.modal-card label {
  display: block;
  color: #d8e5f5;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 17px;
}
.form-card input,
.form-card textarea,
.modal-card input,
.admin-content input,
.admin-content textarea,
.admin-content select,
.ticket-compose input {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: rgba(2, 10, 21, 0.65);
  border: 1px solid #8bb7e32a;
  border-radius: 5px;
  padding: 11px 12px;
  color: white;
  font: 12px var(--font);
  outline: none;
  resize: vertical;
}
.form-card input:focus,
.form-card textarea:focus,
.modal-card input:focus,
.admin-content input:focus,
.admin-content textarea:focus {
  border-color: #3c9df5;
}
.form-message {
  min-height: 17px;
  font-size: 11px;
  color: #9fffc2;
  margin-top: 11px;
}
.form-message.error {
  color: #ff9d9d;
}
.support-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  max-width: 850px;
  margin: 10px auto 44px;
}
.category {
  position: relative;
  min-height: 104px;
  padding: 20px 18px 16px 70px;
  text-align: left;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}
.category:hover {
  border-color: #4eacff;
  transform: translateY(-2px);
}
.cat-icon {
  position: absolute;
  left: 21px;
  top: 28px;
  font-size: 24px;
  color: #62bdff;
}
.category strong {
  display: block;
  font-size: 12px;
  margin: 4px 0 7px;
}
.category small {
  font-size: 10px;
  color: #9fb1c5;
}
.arrow {
  position: absolute;
  right: 18px;
  top: 41px;
  color: #6bbdff;
}
.ticket-chat {
  max-width: 850px;
  margin: 0 auto 50px;
  padding: 18px;
}
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.ticket-head h2 {
  font: 700 21px var(--display);
  margin: 0;
}
.ticket-messages {
  height: 260px;
  overflow: auto;
  padding: 14px 2px;
}
.message {
  padding: 10px 12px;
  margin: 7px 0;
  background: #ffffff0a;
  border-radius: 6px;
  color: #d8e5f5;
  font-size: 12px;
  line-height: 1.55;
}
.message.staff {
  border-left: 2px solid #47a9ff;
}
.message time {
  display: block;
  color: #8297ae;
  font-size: 9px;
  margin-top: 5px;
}
.ticket-compose {
  display: flex;
  gap: 8px;
}
.ticket-compose input {
  margin: 0;
  flex: 1;
}
.secondary {
  background: #14283e;
  border: 1px solid var(--line);
  color: #d8e8f8;
  padding: 9px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 10px;
}
.ticket-actions {
  display: flex;
  gap: 8px;
}
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding-top: 20px;
}
.admin-heading h1 {
  font-size: 36px;
}
.admin-heading p {
  margin: 7px 0;
}
.admin-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 13px;
  margin-bottom: 50px;
}
.admin-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-tab {
  border: 1px solid transparent;
  background: #09192bba;
  color: #b8c8da;
  text-align: left;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font: 600 11px var(--font);
}
.admin-tab.active,
.admin-tab:hover {
  background: #1c5e9e66;
  border-color: #48a3ed52;
  color: white;
}
.admin-content {
  padding: 21px;
  min-height: 350px;
}
.admin-content h2 {
  font: 700 23px var(--display);
  margin: 0 0 16px;
}
.admin-content h3 {
  font-size: 13px;
  margin: 8px 0;
}
.admin-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.admin-card {
  border: 1px solid #ffffff13;
  background: #0717289c;
  border-radius: 7px;
  padding: 14px;
}
.admin-card p {
  font-size: 11px;
  color: #c6d4e4;
  white-space: pre-wrap;
  line-height: 1.6;
}
.admin-card small {
  color: #8da3bb;
  font-size: 10px;
}
.admin-card .actions {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}
.action-btn {
  border: 1px solid #ffffff24;
  background: #12273c;
  color: #e4effc;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 10px;
  cursor: pointer;
}
.action-btn.good {
  border-color: #31b98266;
  color: #9dffd1;
}
.action-btn.bad {
  border-color: #d5545d66;
  color: #ffb4b4;
}
.ticket-admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  min-height: 300px;
}
.ticket-list {
  max-height: 500px;
  overflow: auto;
}
.ticket-row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px;
  background: #071728;
  border: 1px solid #ffffff12;
  color: white;
  border-radius: 5px;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 11px;
}
.ticket-row.selected {
  border-color: #48a3ed;
}
.ticket-row small {
  display: block;
  color: #91a7be;
  margin-top: 5px;
}
.admin-chat {
  border: 1px solid #ffffff14;
  border-radius: 6px;
  padding: 13px;
  min-height: 250px;
}
.admin-chat .ticket-messages {
  height: 220px;
}
.permission-line {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) repeat(6, auto);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #ffffff12;
  padding: 10px 2px;
  font-size: 11px;
}
.permission-line input {
  width: auto;
  accent-color: #268df3;
}
.permission-label {
  color: #a9bfd5;
  font-size: 9px;
  text-align: center;
  max-width: 65px;
}
.post-editor {
  display: grid;
  gap: 12px;
}
.post-editor textarea {
  min-height: 90px;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 11px 17px;
  background: #132e4b;
  color: white;
  border: 1px solid #5aa9f5;
  border-radius: 6px;
  font-size: 11px;
  pointer-events: none;
  transition: 0.25s;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.modal {
  position: fixed;
  inset: 0;
  background: #020712c9;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 18px;
  backdrop-filter: blur(7px);
}
.modal-card {
  position: relative;
  width: min(100%, 420px);
  padding: 29px;
}
.modal-card h2 {
  font: 700 26px var(--display);
  margin: 9px 0 20px;
}
.modal-x {
  position: absolute;
  right: 15px;
  top: 11px;
  border: 0;
  background: none;
  color: #a4b7cd;
  font-size: 25px;
  cursor: pointer;
}
.full {
  width: 100%;
}
.modal-card .text-button {
  display: block;
  margin: 17px auto 0;
}
.muted {
  font-size: 10px;
  line-height: 1.6;
  color: #9eb1c7;
}
.hidden {
  display: none !important;
}
.store-hero {
  padding-top: 90px;
  min-height: 350px;
}
.store-hero h1 {
  margin-top: 22px;
  font-size: 55px;
  color: #dcecff;
}
.store-hero p {
  font-size: 13px;
  color: #aabbcf;
}
footer {
  width: min(100% - 40px, 1120px);
  margin: 30px auto 0;
  padding: 18px 0 24px;
  border-top: 1px solid #ffffff15;
  display: flex;
  gap: 22px;
  color: #8094aa;
  font-size: 10px;
}
footer a {
  color: #81caff;
  text-decoration: none;
}
footer span:nth-child(2) {
  margin-left: auto;
}
@media (max-width: 700px) {
  .topbar {
    padding: 0 14px;
  }
  .account-link {
    font-size: 9px;
    padding: 9px;
  }
  .serverbar {
    padding-top: 74px;
  }
  .navbar {
    overflow-x: auto;
    justify-content: flex-start;
    width: calc(100% - 20px);
    margin-bottom: 12px;
  }
  .navitem {
    padding: 0 14px;
    flex: 0 0 auto;
    font-size: 9px;
  }
  .hero {
    min-height: 275px;
    padding-top: 31px;
  }
  .brand-logo {
    max-height: 145px;
  }
  .home-grid {
    grid-template-columns: 1fr;
  }
  .welcome,
  .quick {
    min-height: 0;
    padding: 21px;
  }
  .post-grid {
    grid-template-columns: 1fr;
  }
  .support-categories {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 21px 17px;
  }
  .page-heading h1 {
    font-size: 34px;
  }
  .admin-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-tab {
    padding: 9px;
  }
  .ticket-admin-layout {
    grid-template-columns: 1fr;
  }
  .ticket-list {
    max-height: 180px;
  }
  .permission-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .online {
    font-size: 8px;
  }
  .online small {
    display: none;
  }
  footer {
    font-size: 9px;
    gap: 12px;
  }
}

.topbar {
  position: fixed;
  top: 0;
  z-index: 20;
  background: rgba(5, 12, 25, 0.92);
  border-bottom: 1px solid rgba(164, 200, 255, 0.18);
  backdrop-filter: blur(14px);
}
.nav-logo {
  display: block;
  width: 150px;
  height: 54px;
  object-fit: contain;
  margin: 0 auto 4px;
  filter: drop-shadow(0 5px 18px #1679e85c);
}
.navbar {
  width: 100%;
  margin: 0 0 31px;
  border-radius: 0;
  position: sticky;
  top: 58px;
  z-index: 15;
}
.home-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.home-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 125px;
}
.online-panel,
.sidebar-posts {
  padding: 16px;
}
.online-panel h3,
.sidebar-posts h3 {
  font: 700 18px var(--display);
  margin: 0 0 12px;
  color: #e8f3ff;
}
.sidebar-posts h3:not(:first-child) {
  margin-top: 22px;
}
.sidebar-posts .post-grid {
  display: block;
  margin: 0;
}
.sidebar-posts .post-card {
  margin-bottom: 9px;
}
.sidebar-posts .post-card img {
  max-height: 100px;
}
.sidebar-posts .post-body {
  padding: 10px;
}
.sidebar-posts .post-body p {
  font-size: 10px;
  margin: 7px 0;
}
.landing-hero {
  min-height: 270px;
  padding: 80px 10px 45px;
}
.landing-hero h1 {
  font: 800 38px/1.1 var(--display);
  max-width: 700px;
  margin: 18px auto;
  color: #f3f7ff;
}
.server-online {
  margin: 20px auto 0;
  font-size: 15px;
}
.landing-section {
  padding: 42px 0;
}
.landing-section h2 {
  font: 800 34px var(--display);
  margin: 0 0 18px;
}
.feature-grid,
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.feature-card,
.feedback-card {
  padding: 21px;
  min-height: 150px;
}
.feature-card h3 {
  font: 700 22px var(--display);
  color: #7fc6ff;
  margin: 0 0 10px;
}
.feature-card p,
.feedback-card {
  font-size: 12px;
  line-height: 1.7;
  color: #d2dceb;
}
.feedback-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feedback-card small {
  display: block;
  color: #8ca5bf;
  margin-top: 12px;
}
.feedback-cta {
  color: #8fcaff;
  font-weight: 700;
}
.command-list {
  display: grid;
  gap: 8px;
}
.command-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 15px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #071728b8;
}
.command-list code {
  color: #9ed7ff;
}
.command-list span {
  font-size: 12px;
  color: #d1ddec;
}
.nav-logo-link {
  height: 64px;
  width: 190px;
  margin: -12px 15px;
  border: 1px solid rgba(164, 200, 255, 0.22);
  border-radius: 7px;
  background: #070d1e;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}
.nav-logo-link img {
  width: 170px;
  height: 58px;
  object-fit: contain;
}
.navbar {
  gap: 6px;
}
.online-group {
  margin: 10px 0;
}
.online-group-title {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
}
.online-names {
  display: grid;
  gap: 4px;
  margin-top: 6px;
  font-size: 10px;
}
@media (max-width: 850px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  .home-sidebar {
    position: static;
    order: 2;
  }
  .home-main {
    order: 1;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-logo-link {
    width: 130px;
    margin: -12px 5px;
  }
  .nav-logo-link img {
    width: 120px;
  }
}
@media (max-width: 600px) {
  .feature-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }
  .command-list div {
    grid-template-columns: 90px 1fr;
  }
  .nav-logo-link {
    width: 100px;
  }
  .nav-logo-link img {
    width: 94px;
  }
  .navitem {
    padding: 0 8px;
  }
}

/* StablePVP refresh: fixed-order navigation, readable content, and mobile fit. */
body {
  min-width: 320px;
  background-image:
    linear-gradient(rgba(4, 10, 20, 0.44), rgba(4, 10, 20, 0.62)),
    url("/assets/background.png");
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  font-size: 16px;
  line-height: 1.55;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  min-height: 76px;
  padding: 10px max(16px, calc((100% - 1360px) / 2));
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 12, 25, 0.96);
  border-bottom: 1px solid rgba(164, 200, 255, 0.2);
  backdrop-filter: blur(16px);
}
.navbar {
  position: static;
  top: auto;
  z-index: auto;
  width: min(660px, calc(100% - 230px));
  height: 54px;
  margin: 0;
  padding: 5px;
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(76px, 1fr) 124px minmax(
      76px,
      1fr
    ) minmax(76px, 1fr);
  gap: 4px;
  border: 1px solid rgba(178, 214, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 17, 32, 0.93);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}
.navitem {
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 10px;
  color: #e1eafa;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: none;
}
.navitem:hover,
.navitem.active {
  color: #ffffff;
  background: rgba(43, 133, 255, 0.2);
}
.nav-logo-link {
  width: 120px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.nav-logo-link:hover,
.nav-logo-link.active {
  background: rgba(43, 133, 255, 0.16);
}
.nav-logo-link img {
  width: 108px;
  height: 26px;
  object-fit: contain;
}
.header-actions {
  position: absolute;
  right: max(16px, calc((100% - 1360px) / 2));
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-link {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
}
.discord {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}
.serverbar {
  padding: 22px 16px 16px;
}
.ipline {
  min-height: 44px;
  height: auto;
  font-size: 13px;
}
.ipline strong {
  font-size: 24px;
}
.copy-btn {
  min-height: 40px;
  padding: 0 12px;
  font-size: 12px;
}
.copy-status {
  width: auto;
  min-width: 40px;
  font-size: 14px;
}
.page {
  width: min(1260px, calc(100% - 40px));
  min-height: 420px;
  margin: 0 auto;
}
.landing-hero {
  width: min(1120px, calc(100% - 40px));
  min-height: 250px;
  margin: 10px auto 20px;
  padding: 48px 24px 40px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(120deg, rgba(6, 16, 31, 0.85), rgba(9, 26, 47, 0.68)),
    radial-gradient(ellipse at 50% 0%, rgba(43, 133, 255, 0.2), transparent 68%);
  backdrop-filter: blur(7px);
}
.landing-hero .eyebrow {
  font-size: 14px;
}
.landing-hero h1 {
  margin: 12px auto 18px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
}
.server-online {
  min-height: 44px;
  margin: 12px auto 0;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.server-online strong {
  font-size: 18px;
}
.server-online small {
  font-size: 14px;
}
.home-layout {
  grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 44px;
}
.home-sidebar {
  top: 96px;
  gap: 16px;
}
.home-sidebar > .glass {
  background: rgba(7, 19, 36, 0.88);
  border: 1px solid rgba(164, 200, 255, 0.2);
}
.online-panel,
.sidebar-posts {
  padding: 18px;
}
.online-panel h2,
.sidebar-posts h2 {
  margin: 0 0 14px;
  color: #f3f7ff;
  font: 700 21px/1.2 var(--display);
}
.sidebar-posts h2:not(:first-child) {
  margin-top: 24px;
}
.online-group {
  margin: 14px 0;
}
.online-group-title {
  font-size: 14px;
}
.online-names {
  grid-template-columns: 1fr;
  gap: 4px;
  font-size: 14px;
}
.home-main {
  min-width: 0;
}
.landing-section {
  padding: 24px 0 32px;
}
.landing-section h2 {
  margin: 0 0 16px;
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.2;
}
.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.feature-card,
.feedback-card {
  min-height: 150px;
  padding: 20px;
  background: rgba(7, 19, 36, 0.9);
}
.feature-card h3 {
  font-size: 23px;
}
.feature-card p,
.feedback-card {
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
}
.feedback-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feedback-card small {
  font-size: 14px;
}
.feedback-cta {
  margin-top: 18px;
  font-size: 16px;
}
.command-list {
  gap: 10px;
}
.command-list div {
  grid-template-columns: minmax(110px, 170px) minmax(0, 1fr);
  gap: 16px;
  min-height: 54px;
  padding: 12px 16px;
  background: rgba(7, 19, 36, 0.9);
}
.command-list code {
  font-size: 15px;
}
.command-list span {
  font-size: 15px;
}
.page-heading {
  margin: 28px auto 22px;
}
.page-heading h1 {
  font-size: clamp(34px, 4vw, 46px);
}
.page-heading p,
.muted {
  font-size: 16px;
  line-height: 1.55;
}
.category {
  min-height: 84px;
}
.category strong {
  font-size: 16px;
}
.category small {
  font-size: 14px;
}
.form-card,
.admin-content {
  background: rgba(7, 19, 36, 0.92);
}
.form-card label,
.post-editor label,
.group-edit-form label {
  font-size: 15px;
}
.form-card input,
.form-card textarea,
.post-editor input,
.post-editor textarea,
.post-editor select,
.group-edit-form input,
.group-edit-form select,
.group-card select,
.command-editor input {
  min-height: 44px;
  font-size: 16px;
}
.post-grid {
  gap: 16px;
}
.post-card img {
  max-height: 260px;
  object-fit: cover;
}
.post-body p {
  font-size: 15px;
  line-height: 1.55;
}
.post-meta {
  font-size: 13px;
}
.empty-state {
  padding: 14px 0;
  font-size: 14px;
}
.online-names .empty-state {
  color: var(--muted);
}
.command-admin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.command-admin-card code {
  color: #9ed7ff;
  font-size: 16px;
}
.command-admin-card p {
  margin: 6px 0 0;
}
.admin-subheading {
  margin-top: 30px;
}
.group-card {
  display: grid;
  gap: 14px;
}
.group-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.group-card-heading h3 {
  margin: 0;
}
.group-card-heading > span {
  color: var(--muted);
  font-size: 14px;
}
.group-edit-form {
  display: grid;
  gap: 12px;
}
.group-user-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.group-user-list span {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--white);
  font-size: 14px;
}
.permission-label {
  min-height: 42px;
  font-size: 14px;
}
.permission-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.permission-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  max-width: none;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(5, 15, 29, 0.65);
  line-height: 1.35;
  text-align: left;
}
.permission-label input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}
.admin-tab,
.action-btn,
.secondary,
.primary,
.text-button,
.modal-x {
  min-height: 44px;
}
.modal {
  z-index: 100;
}
.modal-card {
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.modal-card label small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
footer {
  margin-top: 28px;
  padding: 22px max(20px, calc((100% - 1180px) / 2));
  font-size: 14px;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid #79c9ff;
  outline-offset: 3px;
}

@media (max-width: 1000px) {
  .topbar {
    min-height: 104px;
    padding: 8px 12px;
    flex-direction: column;
    gap: 6px;
  }
  .navbar {
    width: 100%;
    max-width: 720px;
    height: 50px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 96px minmax(
        0,
        1fr
      ) minmax(0, 1fr);
    gap: 2px;
  }
  .navitem {
    height: 40px;
    min-height: 40px;
    padding: 0 6px;
    font-size: 13px;
  }
  .nav-logo-link {
    width: 92px;
    height: 40px;
  }
  .nav-logo-link img {
    width: 82px;
    height: 22px;
  }
  .header-actions {
    position: static;
    align-self: flex-end;
    gap: 8px;
  }
  .account-link {
    min-height: 36px;
  }
  .discord {
    width: 36px;
    height: 36px;
  }
  .home-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-sidebar {
    position: static;
    order: 2;
  }
  .home-main {
    order: 1;
  }
}
@media (max-width: 600px) {
  .topbar {
    min-height: 98px;
  }
  .navbar {
    padding: 4px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 72px minmax(
        0,
        1fr
      ) minmax(0, 1fr);
  }
  .navitem {
    font-size: 12px;
    letter-spacing: 0;
  }
  .nav-logo-link {
    width: 68px;
  }
  .nav-logo-link img {
    width: 62px;
    height: 18px;
  }
  .serverbar {
    padding: 16px 12px 12px;
  }
  .ipline {
    gap: 7px;
    font-size: 12px;
  }
  .ipline strong {
    font-size: 20px;
  }
  .page,
  .landing-hero {
    width: calc(100% - 28px);
  }
  .landing-hero {
    min-height: 220px;
    padding: 34px 16px;
  }
  .landing-hero .eyebrow {
    font-size: 12px;
  }
  .server-online {
    flex-wrap: wrap;
    font-size: 14px;
  }
  .server-online small {
    flex-basis: 100%;
  }
  .feature-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }
  .feature-card,
  .feedback-card {
    min-height: 0;
  }
  .command-list div {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }
  .command-list span {
    font-size: 14px;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-tabs {
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
  }
  .admin-tab {
    flex: 0 0 auto;
  }
  .permission-line {
    grid-template-columns: 1fr;
  }
  .ticket-admin-layout {
    grid-template-columns: 1fr;
  }
  .ticket-list {
    max-height: 220px;
  }
  .command-admin-card {
    align-items: flex-start;
    flex-direction: column;
  }
  footer {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tierlist */
.navbar {
  width: min(790px, calc(100% - 250px));
  grid-template-columns: repeat(3, minmax(70px, 1fr)) 118px repeat(
      2,
      minmax(70px, 1fr)
    );
}
.tier-heading,
.tier-board {
  width: min(100%, 1360px);
  margin-left: auto;
  margin-right: auto;
}
.tier-heading {
  padding-top: 26px;
  text-align: left;
}
.tier-board {
  margin-bottom: 46px;
  padding: 18px;
  border: 1px solid rgba(164, 200, 255, 0.18);
  background: rgba(7, 16, 31, 0.88);
}
.tier-mode-tabs {
  display: flex;
  gap: 7px;
  padding-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.tier-mode {
  min-width: 92px;
  min-height: 62px;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  border: 1px solid rgba(164, 200, 255, 0.16);
  border-radius: 8px;
  background: rgba(3, 10, 22, 0.62);
  color: #aebed3;
  font: 700 10px var(--font);
  cursor: pointer;
  transition: 0.18s ease;
}
.tier-mode:hover,
.tier-mode.active {
  border-color: rgba(116, 183, 255, 0.72);
  background: rgba(43, 133, 255, 0.2);
  color: #fff;
}
.tier-mode img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  image-rendering: pixelated;
}
.tier-trophy {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  font-size: 19px;
  line-height: 1;
}
.tier-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(164, 200, 255, 0.13);
}
.tier-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding: 0 13px;
  border: 1px solid rgba(164, 200, 255, 0.2);
  border-radius: 8px;
  background: rgba(2, 8, 20, 0.75);
  color: #8ba6c4;
}
.tier-search > span {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0;
  line-height: 1;
}
.tier-search > span::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: currentColor;
  content: "";
  transform: rotate(45deg);
  transform-origin: left center;
}
.tier-search input,
.tier-admin-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f3f7ff;
  font: 500 13px var(--font);
}
.tier-search input {
  height: 42px;
}
.tier-live {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #aebed3;
  font-size: 10px;
  white-space: nowrap;
}
.tier-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66e2a4;
  box-shadow: 0 0 9px #66e2a4a8;
}
#tierUpdatedAt {
  color: #8297b1;
  margin-left: 4px;
}
.tier-table-head,
.tier-player-row {
  display: grid;
  grid-template-columns: 52px minmax(185px, 1.15fr) 88px minmax(250px, 1.8fr);
  align-items: center;
  gap: 12px;
}
.tier-table-head {
  padding: 10px 14px;
  color: #91a8c6;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.tier-table-head span:last-child {
  text-align: right;
}
.tier-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tier-player-row {
  min-height: 76px;
  padding: 10px 14px;
  border: 1px solid rgba(164, 200, 255, 0.17);
  border-radius: 8px;
  background: rgba(2, 8, 20, 0.77);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}
.tier-player-row:hover {
  border-color: rgba(116, 183, 255, 0.55);
  background: rgba(12, 30, 53, 0.92);
  transform: translateY(-1px);
}
.tier-player-row.tier-top-1 {
  border-left: 3px solid #f4c94f;
}
.tier-player-row.tier-top-2 {
  border-left: 3px solid #b8d7f5;
}
.tier-player-row.tier-top-3 {
  border-left: 3px solid #dc9257;
}
.tier-place {
  color: #dae8fa;
  font: 700 20px var(--display);
  text-align: center;
}
.tier-top-1 .tier-place {
  color: #f4c94f;
}
.tier-player-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.tier-avatar {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(192, 218, 255, 0.66);
  border-radius: 50%;
  background: #15243a;
  font-size: 21px;
}
.tier-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.tier-player-name {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.tier-player-name strong {
  overflow: hidden;
  color: #f2f6ff;
  font-size: 14px;
  text-overflow: ellipsis;
}
.tier-player-name small {
  color: #a8bad2;
  font-size: 10px;
}
.tier-region {
  width: max-content;
  min-width: 38px;
  padding: 4px 8px;
  border: 1px solid rgba(164, 200, 255, 0.17);
  border-radius: 5px;
  background: rgba(18, 39, 63, 0.78);
  color: #dceaff;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.tier-contributions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.tier-contribution {
  min-width: 39px;
  min-height: 43px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 4px;
  border: 1px solid rgba(164, 200, 255, 0.17);
  border-radius: 6px;
  background: rgba(18, 30, 49, 0.8);
}
.tier-contribution img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  image-rendering: pixelated;
}
.tier-contribution b {
  color: #d5e6ff;
  font-size: 9px;
  line-height: 1.2;
}
.tier-rank-pill {
  min-width: 54px;
  padding: 7px 12px;
  border: 1px solid rgba(116, 183, 255, 0.42);
  border-radius: 6px;
  background: rgba(43, 133, 255, 0.15);
  color: #d8eaff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.tier-mode-points {
  color: #adbed4;
  font-size: 10px;
}
.tier-footnote {
  margin: 13px 2px 0;
  color: #8196b2;
  font-size: 10px;
}
.tier-admin-form {
  margin-bottom: 24px;
}
.tier-admin-identity {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.38fr);
  gap: 12px;
}
.tier-admin-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 13px 0;
}
.tier-admin-mode {
  display: grid;
  grid-template-columns: 27px minmax(60px, 1fr) minmax(76px, 0.8fr);
  align-items: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(164, 200, 255, 0.13);
  border-radius: 6px;
  background: rgba(2, 8, 20, 0.4);
  color: #dbe8fa;
  font-size: 10px;
}
.tier-admin-mode img,
.tier-admin-summary img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  image-rendering: pixelated;
}
.tier-admin-mode select {
  min-width: 0;
  width: 100%;
  padding: 7px 5px;
}
.tier-admin-list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
}
.tier-admin-list-heading h2 {
  margin-bottom: 10px;
}
.tier-admin-list-heading > span {
  color: #8fa6c2;
  font-size: 10px;
}
.tier-admin-search {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
  color: #b8c9de;
  font-size: 11px;
}
.tier-admin-search input {
  min-height: 39px;
  padding: 8px 11px;
  border: 1px solid rgba(164, 200, 255, 0.2);
  border-radius: 6px;
  background: rgba(2, 8, 20, 0.7);
}
.tier-admin-player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tier-admin-player-top > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tier-admin-meta {
  color: #a9bdd5;
  font-size: 10px;
}
.tier-admin-player .actions {
  margin-top: 0;
}
.tier-admin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.tier-admin-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border: 1px solid rgba(164, 200, 255, 0.12);
  border-radius: 4px;
  color: #b9cce3;
  font-size: 9px;
}
.tier-admin-summary img {
  width: 17px;
  height: 17px;
}
.tier-admin-summary b {
  color: #eef5ff;
}
@media (max-width: 900px) {
  .navbar {
    width: min(760px, calc(100% - 210px));
    grid-template-columns: repeat(3, minmax(62px, 1fr)) 100px repeat(
        2,
        minmax(62px, 1fr)
      );
  }
  .tier-table-head,
  .tier-player-row {
    grid-template-columns: 42px minmax(150px, 1fr) 68px minmax(190px, 1.4fr);
    gap: 8px;
  }
  .tier-contribution {
    min-width: 34px;
  }
  .tier-contributions {
    gap: 3px;
  }
}
@media (max-width: 640px) {
  .navbar {
    width: calc(100% - 20px);
    grid-template-columns: repeat(3, minmax(0, 1fr)) 82px repeat(
        2,
        minmax(0, 1fr)
      );
    gap: 2px;
  }
  .navitem {
    padding: 0 4px;
    font-size: 11px;
  }
  .nav-logo-link {
    width: 82px;
    height: 40px;
    margin: 0;
    z-index: 1;
  }
  .nav-logo-link img {
    width: 75px;
  }
  .tier-board {
    padding: 11px;
  }
  .tier-mode {
    min-width: 79px;
  }
  .tier-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
  }
  .tier-live {
    justify-content: flex-end;
  }
  .tier-table-head,
  .tier-player-row {
    grid-template-columns: 32px minmax(0, 1fr) 48px;
    gap: 7px;
  }
  .tier-table-head {
    padding: 8px 7px;
    font-size: 9px;
  }
  .tier-table-head span:last-child {
    display: none;
  }
  .tier-table-head span:nth-child(2) {
    grid-column: 2;
  }
  .tier-player-row {
    padding: 9px 7px;
  }
  .tier-place {
    font-size: 17px;
  }
  .tier-player-info {
    gap: 8px;
  }
  .tier-avatar {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  .tier-player-name strong {
    font-size: 12px;
  }
  .tier-contributions {
    grid-column: 2 / -1;
    justify-content: flex-start;
    padding-top: 7px;
    border-top: 1px solid rgba(164, 200, 255, 0.12);
  }
  .tier-contribution {
    min-width: 34px;
    min-height: 38px;
  }
  .tier-admin-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tier-admin-mode {
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .tier-admin-mode img {
    width: 20px;
    height: 20px;
  }
  .tier-admin-mode select {
    grid-column: 1 / -1;
  }
  .tier-admin-identity {
    grid-template-columns: minmax(0, 1fr) 90px;
  }
}

/* Blue, full-width scroll landing page */
:root {
  --blue: #70c4f3;
  --cyan: #9bdcff;
}
body {
  background-color: #c9e4f6;
  background-image: url("/assets/background-light.png");
  background-position: center 36%;
  background-size: cover;
  background-attachment: fixed;
  color: #17354d;
}
body:before {
  background: transparent;
}
main {
  width: 100%;
  max-width: none;
  margin: 0;
}
.topbar {
  background: rgba(220, 239, 252, 0.96);
  border-bottom: 1px solid #78b9df;
  box-shadow: 0 2px 12px rgba(27, 75, 104, 0.12);
  backdrop-filter: blur(14px);
}
.navbar {
  background: rgba(244, 250, 255, 0.86);
  border: 1px solid rgba(80, 146, 187, 0.48);
  box-shadow: none;
}
.navitem {
  color: #173b56;
}
.navitem:hover,
.navitem.active {
  background: #a8ddfa;
  color: #10344d;
  box-shadow: inset 0 0 0 1px #73b9e1;
}
.nav-logo-link,
.nav-logo-link:hover,
.nav-logo-link.active {
  background: rgba(247, 252, 255, 0.94);
  border: 1px solid #82bfe2;
}
.account-link {
  background: rgba(242, 249, 255, 0.94);
  border-color: #8bbfdd;
  color: #173b56;
}
.account-link:hover,
.secondary:hover {
  border-color: #318fca;
  color: #10344d;
}
.serverbar {
  padding: 12px 16px;
  background: rgba(226, 242, 253, 0.9);
  border-bottom: 1px solid #a4cfe8;
}
.ipline {
  color: #294b64;
}
.ip-label {
  color: #47677d;
}
.ipline strong {
  color: #153a57;
  text-shadow: none;
}
.copy-btn {
  background: #9bd8f8;
  border: 1px solid #5ca8d4;
  color: #143b57;
}
.copy-btn:hover {
  background: #c3eaff;
}
.page {
  color: #19384f;
}
#page-admin,
#page-admin .admin-content {
  color: #f3f7ff;
}
#page-admin .page-heading p {
  color: #aebdd0;
}
.page:not(#page-home):not(#page-admin) .page-heading p,
.page:not(#page-home):not(#page-admin) .muted {
  color: #506b7f;
}
.page:not(#page-home):not(#page-admin) .glass,
.page:not(#page-home):not(#page-admin) .form-card,
.page:not(#page-home):not(#page-admin) .tier-board {
  border-color: #8dbfdd;
  background: rgba(238, 248, 255, 0.96);
  color: #17354d;
  box-shadow: 0 4px 14px rgba(26, 73, 102, 0.1);
}
.page:not(#page-home):not(#page-admin) .form-card label {
  color: #234760;
}
.page:not(#page-home):not(#page-admin) .form-card input,
.page:not(#page-home):not(#page-admin) .form-card textarea,
.page:not(#page-home):not(#page-admin) .tier-search {
  border-color: #9dc9e2;
  background: #fbfdff;
  color: #15364d;
}
.home-page {
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: clip;
}
.home-band {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 78px 24px;
  scroll-margin-top: 88px;
  border-top: 1px solid rgba(87, 151, 189, 0.5);
  border-bottom: 1px solid rgba(87, 151, 189, 0.5);
  color: #17364e;
}
.home-content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}
.home-band h2 {
  margin: 7px 0 10px;
  color: #163852;
  font: 800 clamp(34px, 4vw, 48px)/1.08 var(--display);
  letter-spacing: 0.015em;
}
.home-band .eyebrow {
  color: #38779c;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.home-section-intro {
  max-width: 680px;
  margin: 0 0 27px;
  color: #47667c;
  font-size: 16px;
  line-height: 1.6;
}
.home-hero {
  display: grid;
  min-height: min(760px, calc(100vh - 142px));
  place-items: center;
  padding: 54px 24px 75px;
  border: 0;
  border-bottom: 3px solid #74b7de;
  border-radius: 0;
  background: url("/assets/background-light.png") center 46% / cover no-repeat;
}
.home-hero::before {
  position: absolute;
  inset: 0;
  background: rgba(215, 237, 252, 0.16);
  content: "";
}
.home-hero-content {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  padding: 34px 38px;
  border: 1px solid rgba(91, 153, 191, 0.82);
  border-radius: 8px;
  background: rgba(237, 248, 255, 0.86);
  box-shadow: 0 6px 22px rgba(24, 63, 89, 0.15);
  text-align: center;
  backdrop-filter: blur(4px);
}
.home-hero-logo {
  display: block;
  width: min(290px, 75%);
  max-height: 140px;
  margin: 0 auto 15px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(26, 57, 80, 0.2));
}
.home-hero-content .eyebrow {
  color: #3e7798;
}
.home-hero h1 {
  max-width: none;
  margin: 11px 0 8px;
  color: #153954;
  font: 800 clamp(42px, 6vw, 68px)/1 var(--display);
  letter-spacing: 0.025em;
}
.home-hero-subtitle {
  margin: 0;
  color: #345a73;
  font-size: 18px;
  line-height: 1.5;
}
.home-hero .server-online {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 46px;
  margin: 21px auto 0;
  padding: 9px 15px;
  border: 1px solid #91c9e9;
  border-radius: 6px;
  background: rgba(250, 253, 255, 0.96);
  color: #24465d;
  box-shadow: 0 2px 7px rgba(26, 68, 93, 0.08);
}
.home-hero .server-online strong {
  color: #1674a8;
  font-size: 18px;
}
.home-hero .server-online small {
  color: #b34f4f;
  font-size: 13px;
  font-weight: 700;
}
.home-hero .server-online small[data-state="online"] {
  color: #247f52;
}
.home-hero .server-online .pulse {
  background: #39b879;
  box-shadow: 0 0 9px rgba(57, 184, 121, 0.55);
}
.home-hero .server-online:not(.is-online) .pulse {
  background: #e2a23a;
  box-shadow: 0 0 8px rgba(226, 162, 58, 0.4);
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 18px;
}
.home-hero-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid #72b4dc;
  border-radius: 4px;
  background: #a8ddfa;
  color: #123c57;
  font: 700 13px var(--font);
  text-decoration: none;
  cursor: pointer;
}
.home-hero-button:hover {
  border-color: #378dbd;
  background: #c8ecff;
}
.home-hero-button.secondary {
  background: rgba(249, 253, 255, 0.93);
}
.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #163d58;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transform: translateX(-50%);
}
.scroll-cue span {
  width: 13px;
  height: 19px;
  border: 2px solid #2e739b;
  border-radius: 8px;
}
.home-band--visual {
  background:
    linear-gradient(
      110deg,
      rgba(224, 242, 255, 0.37),
      rgba(236, 247, 255, 0.52)
    ),
    url("/assets/background-light.png") center 52% / cover no-repeat;
}
.home-modes {
  padding-top: 70px;
  padding-bottom: 82px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  min-height: 205px;
  padding: 22px;
  border: 1px solid #80b6d7;
  border-radius: 5px;
  background: rgba(246, 251, 255, 0.94);
  box-shadow: 4px 4px 0 rgba(52, 98, 127, 0.15);
  color: #24465d;
}
.home-card-icon {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid #a4d0ea;
  border-radius: 4px;
  background: #dcefff;
  color: #247dad;
  font-size: 24px;
}
.feature-card h3 {
  margin: 0 0 9px;
  color: #1b6790;
  font: 800 22px/1.15 var(--display);
}
.feature-card p {
  margin: 0;
  color: #36576d;
  font-size: 15px;
  line-height: 1.6;
}
.feature-card--cta a {
  display: inline-block;
  margin-top: 12px;
  color: #176c9b;
  font-weight: 800;
  text-decoration: none;
}
.feature-card--cta a:hover {
  text-decoration: underline;
}
.home-what {
  background:
    linear-gradient(
      110deg,
      rgba(232, 245, 255, 0.56),
      rgba(232, 245, 255, 0.68)
    ),
    url("/assets/background-light.png") center 38% / cover no-repeat;
}
.command-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.command-list div {
  grid-template-columns: minmax(105px, 155px) minmax(0, 1fr);
  min-height: 76px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #91c2df;
  border-radius: 5px;
  background: rgba(249, 252, 255, 0.94);
  box-shadow: 3px 3px 0 rgba(52, 98, 127, 0.1);
}
.command-list code {
  color: #176e9e;
  font-size: 14px;
  font-weight: 800;
}
.command-list span {
  color: #3e5f75;
  font-size: 14px;
  line-height: 1.5;
}
.home-band--community {
  background:
    linear-gradient(
      110deg,
      rgba(209, 233, 249, 0.48),
      rgba(220, 239, 252, 0.62)
    ),
    url("/assets/background-light.png") center 58% / cover no-repeat;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 15px;
  margin-top: 25px;
}
.community-panel {
  min-width: 0;
  min-height: 230px;
  padding: 20px;
  border: 1px solid #91bfdb;
  border-radius: 5px;
  background: rgba(248, 252, 255, 0.94);
  box-shadow: 3px 3px 0 rgba(52, 98, 127, 0.12);
}
.community-panel h3 {
  margin: 0 0 15px;
  color: #1b5275;
  font: 800 21px/1.2 var(--display);
}
.community-panel h3 span {
  display: inline-grid;
  min-width: 27px;
  min-height: 27px;
  place-items: center;
  margin-left: 5px;
  border-radius: 4px;
  background: #d9efff;
  color: #176d9b;
  font: 700 13px var(--font);
}
.community-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.community-panel-heading .text-button {
  min-height: 36px;
  padding: 0 4px;
  color: #176e9e;
  font-size: 12px;
}
.community-panel #onlineGroups {
  display: grid;
  gap: 12px;
}
.community-panel .online-group-title {
  color: #276e92 !important;
  font-size: 13px;
}
.community-panel .online-names,
.community-panel .empty-state {
  color: #5b7486;
  font-size: 13px;
}
.community-panel .post-grid,
.community-panel > div[id^="home"] {
  display: grid;
  gap: 10px;
  margin: 0;
}
.community-panel .post-card {
  overflow: hidden;
  border: 1px solid #c2ddec;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}
.community-panel .post-card img {
  max-height: 145px;
}
.community-panel .post-body {
  padding: 12px;
}
.community-panel .post-meta {
  color: #39799b;
  font-size: 9px;
}
.community-panel .post-body p {
  margin: 8px 0 0;
  color: #3d5c71;
  font-size: 13px;
  line-height: 1.5;
}
.home-band--reviews {
  background:
    linear-gradient(
      120deg,
      rgba(222, 240, 253, 0.47),
      rgba(238, 248, 255, 0.61)
    ),
    url("/assets/background-light.png") center 68% / cover no-repeat;
}
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.feedback-card {
  min-height: 175px;
  padding: 23px;
  border: 1px solid #83b6d7;
  border-radius: 5px;
  background: rgba(249, 252, 255, 0.95);
  box-shadow: 4px 4px 0 rgba(52, 98, 127, 0.14);
  color: #24465d;
}
.feedback-card p {
  margin: 0;
  color: #25475e;
  font-size: 16px;
  line-height: 1.65;
}
.feedback-card small {
  display: block;
  margin-top: 20px;
  color: #39799b;
  font-size: 12px;
  font-weight: 700;
}
.feedback-cta {
  margin: 22px 0 0;
  color: #245a79;
  font-size: 15px;
  font-weight: 700;
}
.home-join {
  background:
    linear-gradient(rgba(199, 228, 247, 0.43), rgba(226, 242, 254, 0.59)),
    url("/assets/background-light.png") center 26% / cover no-repeat;
}
.home-join .home-content {
  padding: 35px 25px;
  border: 1px solid #88b9d7;
  border-radius: 6px;
  background: rgba(240, 249, 255, 0.84);
  text-align: center;
}
.home-join .home-content > p {
  margin: 0;
  color: #3c5c72;
  font-size: 16px;
}
.home-join .home-hero-actions {
  margin-top: 20px;
}
footer {
  margin-top: 0;
  border-top: 1px solid #9ac9e3;
  background: rgba(211, 234, 249, 0.96);
  color: #35566d;
}
footer a {
  color: #176d9b;
}
.tier-board {
  background: rgba(238, 248, 255, 0.96);
}
.tier-mode {
  background: rgba(249, 252, 255, 0.96);
  border-color: #a4cce3;
  color: #34576e;
}
.tier-mode:hover,
.tier-mode.active {
  border-color: #5aa6d2;
  background: #d6efff;
  color: #163d58;
}
.tier-controls {
  border-color: #c0dceb;
}
.tier-search {
  border-color: #a2cbe1;
  background: #fbfdff;
  color: #4a7189;
}
.tier-search input {
  color: #183b54;
}
.tier-live,
#tierUpdatedAt,
.tier-table-head,
.tier-footnote {
  color: #567386;
}
.tier-table-head {
  border-bottom: 1px solid #c6deec;
}
.tier-player-row {
  border-color: #a3c9df;
  background: rgba(250, 253, 255, 0.98);
}
.tier-player-row:hover {
  border-color: #60a7d0;
  background: #f1f9ff;
}
.tier-player-name strong,
.tier-place {
  color: #1b3f58;
}
.tier-player-name small,
.tier-mode-points {
  color: #557387;
}
.tier-region {
  border-color: #b0d1e4;
  background: #e8f5fe;
  color: #2c526b;
}
.tier-contribution {
  border-color: #bfd8e7;
  background: #f4faff;
}
.tier-contribution b {
  color: #325a74;
}
.tier-rank-pill {
  border-color: #8ebfe0;
  background: #e1f2ff;
  color: #1c5478;
}
.tier-top-1 .tier-place {
  color: #317eaa;
}
.tier-player-row.tier-top-1 {
  border-left-color: #5caad4;
}
.tier-player-row.tier-top-2 {
  border-left-color: #8ab7d3;
}
.tier-player-row.tier-top-3 {
  border-left-color: #a5cce3;
}
@media (max-width: 900px) {
  .home-band {
    padding: 62px 22px;
  }
  .feature-grid,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .community-panel:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  body {
    background-attachment: scroll;
  }
  .serverbar {
    padding: 10px 12px;
  }
  .ipline {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
  }
  .ipline strong {
    font-size: 19px;
  }
  .home-band {
    padding: 48px 18px;
  }
  .home-hero {
    min-height: 620px;
    padding: 40px 17px 69px;
    background-position: 56% center;
  }
  .home-hero-content {
    padding: 26px 18px;
  }
  .home-hero-logo {
    width: min(225px, 80%);
    max-height: 105px;
  }
  .home-hero-subtitle {
    font-size: 16px;
  }
  .home-hero .server-online {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
  }
  .home-hero .server-online small {
    flex-basis: 100%;
  }
  .home-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .home-hero-button {
    width: 100%;
  }
  .scroll-cue {
    bottom: 15px;
  }
  .feature-grid,
  .feedback-grid,
  .community-grid,
  .command-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .community-panel:first-child {
    grid-column: auto;
  }
  .feature-card,
  .feedback-card {
    min-height: 0;
  }
  .command-list div {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 11px;
  }
}
