:root {
  --bg-main: #070b13;
  --bg-panel: #0f1623;
  --bg-panel-soft: #172132;
  --bg-panel-deep: #0b111b;
  --line: rgba(74, 128, 208, 0.22);
  --line-strong: rgba(97, 162, 255, 0.34);
  --text-main: #d9dce6;
  --text-soft: #8f9ab0;
  --text-dim: #6e7b94;
  --accent: #2f75d6;
  --accent-strong: #5aa2ff;
  --accent-soft: rgba(47, 117, 214, 0.18);
  --gold: #72b2ff;
  --green: #71d87f;
  --blue-deep: #09111f;
  --blue-glow: #1a58b7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-main);
  background:
    linear-gradient(180deg, rgba(7, 11, 19, 0.15), rgba(3, 4, 10, 0.96) 60%, #04050a 100%),
    url("/templates/new/assets/valerion-bg.png") top center / 1920px auto no-repeat,
    linear-gradient(180deg, #05060b, #020308);
  background-attachment: fixed, fixed, fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(55, 112, 214, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(12, 18, 32, 0), rgba(4, 6, 12, 0.5) 42%, rgba(3, 4, 9, 0.95) 100%);
  pointer-events: none;
  z-index: -1;
}

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

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: 1590px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 13, 22, 0.96);
  border-top: 3px solid rgba(69, 140, 255, 0.9);
  border-bottom: 1px solid rgba(61, 115, 196, 0.46);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.topbar-inner {
  min-height: 62px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  height: 62px;
}

.brand img {
  width: 158px;
  max-height: 42px;
  object-fit: contain;
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(59, 129, 255, 0.18));
}

.login-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.login-field,
.login-button {
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.login-field {
  width: 120px;
  border: 1px solid rgba(58, 110, 188, 0.65);
  background: linear-gradient(180deg, rgba(15, 22, 35, 0.95), rgba(9, 14, 24, 0.98));
  color: #90a3bf;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input.login-field::placeholder {
  color: #90a3bf;
  opacity: 1;
}

input.login-field:focus {
  border-color: rgba(102, 164, 255, 0.88);
  box-shadow: 0 0 0 2px rgba(77, 134, 214, 0.18);
}

.login-button {
  min-width: 72px;
  justify-content: center;
  background: linear-gradient(180deg, #3f88ef, #1d56a8);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.login-strip-auth .login-button {
  min-width: 116px;
  text-transform: uppercase;
}

.login-button-account {
  background: linear-gradient(180deg, rgba(20, 34, 54, 0.98), rgba(12, 21, 36, 0.98));
  border: 1px solid rgba(58, 110, 188, 0.65);
  color: #dce8ff;
}

.login-button-logout {
  min-width: 90px;
}

.login-lost {
  color: #97a5b8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(53, 100, 171, 0.62);
  background: linear-gradient(180deg, rgba(15, 22, 35, 0.96), rgba(9, 14, 24, 0.98));
  border-radius: 2px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  text-transform: uppercase;
  color: #c6bfc8;
}

.status-item strong {
  color: #f3eef2;
  font-size: 12px;
}

.status-live {
  color: var(--green);
}

.status-icon {
  color: #63a7ff;
  font-size: 10px;
}

.status-divider {
  width: 1px;
  height: 16px;
  background: rgba(65, 102, 149, 0.62);
}

.hero {
  height: 190px;
  margin-bottom: 10px;
  background: transparent;
}

.hero-inner {
  height: 100%;
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-logo {
  width: min(620px, 54vw);
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.34));
  opacity: 1;
}

.layout-grid {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 268px;
  gap: 14px;
  align-items: start;
  margin-top: -1px;
}

.sidebar-left,
.sidebar-right,
.content-col {
  min-width: 0;
}

.sidebar-card,
.ticker-card,
.content-shell {
  background: linear-gradient(180deg, rgba(14, 22, 35, 0.96), rgba(9, 15, 24, 0.98));
  border: 1px solid rgba(52, 97, 165, 0.38);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar-left,
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-head,
.ticker-head,
.content-head {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid rgba(61, 108, 178, 0.55);
  background: linear-gradient(180deg, rgba(21, 35, 55, 0.95), rgba(13, 24, 40, 0.98));
}

.card-head-title {
  color: #72b2ff !important;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-head-title > span:last-child,
.ticker-label {
  font-size: 9.5px;
  font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  color: #72b2ff;
}

.card-head > span {
  font-size: 9.5px;
  font-weight: 800;
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  text-transform: uppercase;
  letter-spacing: 2.8px;
  color: var(--gold);
}

.card-head small {
  color: #97a9c5;
  font-size: 12px;
}

.card-toggle {
  border: 0;
  background: transparent;
  color: #97a9c5;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.18s ease, transform 0.18s ease;
}

.card-toggle:hover {
  color: #d7e6ff;
}

.section-icon {
  color: #72b2ff !important;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
}

.section-icon svg,
.menu-icon svg {
  display: block;
}

.card-body {
  padding: 12px;
}

.sidebar-card .card-body {
  max-height: 1200px;
  overflow: hidden;
  transition: max-height 0.22s ease, padding-top 0.22s ease, padding-bottom 0.22s ease, opacity 0.18s ease;
  opacity: 1;
}

.sidebar-card.is-collapsed .card-body {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.compact .card-head {
  border-bottom: 1px solid rgba(61, 108, 178, 0.55);
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: #d5ced7;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-pill:last-child {
  margin-bottom: 0;
}

.nav-pill:hover {
  background: linear-gradient(180deg, rgba(18, 31, 50, 0.72), rgba(11, 21, 35, 0.92));
  border-color: rgba(80, 132, 212, 0.24);
  transform: translateX(2px);
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: #d6d0d8;
  font-size: 13.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(48, 78, 118, 0.28);
  border-radius: 10px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.menu-list a:last-child {
  border-bottom: 0;
}

.menu-list a:hover {
  background: linear-gradient(180deg, rgba(18, 31, 50, 0.56), rgba(11, 21, 35, 0.82));
  border-color: rgba(80, 132, 212, 0.2);
  transform: translateX(2px);
}

.icon-menu {
  padding: 10px 12px 12px;
}

.icon-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  color: #d6d0d8;
  font-size: 13.5px;
  font-weight: 700;
  border-bottom: 1px solid rgba(48, 78, 118, 0.28);
  border-radius: 10px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.icon-menu a:last-child {
  border-bottom: 0;
}

.icon-menu a:hover {
  background: linear-gradient(180deg, rgba(18, 31, 50, 0.56), rgba(11, 21, 35, 0.82));
  border-color: rgba(80, 132, 212, 0.2);
  transform: translateX(2px);
}


.menu-icon {
  width: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ddd6df;
  font-size: 14px;
  line-height: 1;
}

.ticker-card {
  margin-bottom: 12px;
}

.ticker-row {
  min-height: 48px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #e2dde4;
}

.ticker-date {
  color: #82b7ff;
  font-size: 11px;
  font-family: "Courier New", monospace;
  white-space: nowrap;
}

.ticker-text {
  font-size: 11.6px;
  color: #d6d0d8;
  line-height: 1.45;
}

.ticker-arrow {
  color: #b69ca7;
  font-size: 14px;
  text-align: right;
}

.content-head {
  padding: 0 18px;
}

.content-title {
  color: var(--gold);
  font-size: 13.5px;
  font-weight: 800;
}

.content-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ccbec8;
  font-size: 12px;
}

.content-meta b {
  padding: 5px 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4d95f6, #2459ab);
  color: #fff;
}

.content-panel {
  padding: 18px 18px 26px;
  min-height: 840px;
  background: linear-gradient(180deg, rgba(11, 19, 31, 0.94), rgba(8, 13, 22, 0.98));
  --swamp-bg: #0b121d;
  --swamp-border: rgba(64, 109, 177, 0.42);
  --swamp-moss: #5aa2ff;
  --swamp-glow: #78b7ff;
  --rpg-gold: #72b2ff;
  --text-color: #d8dfeb;
}

.news-feed-shell {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.news-feed-shell .content-panel {
  padding: 0;
  background: transparent;
  min-height: auto;
}

.content-panel h1,
.content-panel h2,
.content-panel h3,
.content-panel h4 {
  font-family: "Inter", sans-serif;
  color: var(--gold);
  font-weight: 800;
}

.content-panel h1 {
  font-size: 30px;
  letter-spacing: 2px;
  text-align: center;
  margin: 0 0 10px;
}

.content-panel h2,
.content-panel h3 {
  font-size: 22px;
  margin: 20px 0 10px;
}

.content-panel p,
.content-panel li,
.content-panel td,
.content-panel th,
.content-panel div,
.content-panel span {
  color: #ddd5dc;
  font-size: 12.88px;
}

.content-panel p {
  margin: 0 0 18px;
}

.content-panel ul,
.content-panel ol {
  padding-left: 22px;
  margin: 0 0 22px;
}

.content-panel li {
  margin-bottom: 7px;
}

.content-panel a {
  color: #72b2ff !important;
}

.content-panel img,
.content-panel video,
.content-panel iframe {
  width: 100%;
  border-radius: 14px;
  margin: 18px 0 24px;
  background: #000;
}

.content-panel table,
.TableContentContainer,
.TableContainer,
.TableContent,
.Table1,
.Table2,
.Table3,
.Table4,
.Table5 {
  width: 100%;
  background: rgba(17, 16, 23, 0.92) !important;
  color: #dfe3ef !important;
  border-color: rgba(84, 118, 183, 0.2) !important;
}

.content-panel table {
  border-collapse: collapse !important;
  margin: 18px 0 24px;
}

.content-panel tr,
.content-panel td,
.content-panel th,
.TableContent tr,
.TableContent td,
.TableContent th {
  background: rgba(16, 16, 24, 0.92) !important;
  color: #dfe3ef !important;
  border-color: rgba(84, 118, 183, 0.18) !important;
}

.content-panel th,
.LabelH,
.LabelV {
  background: linear-gradient(180deg, #1a2132, #10141f) !important;
  color: #fff !important;
}

.content-panel input,
.content-panel select,
.content-panel textarea,
.content-panel button {
  background: #0d1522 !important;
  border: 1px solid rgba(98, 141, 223, 0.28) !important;
  color: #eef3ff !important;
  border-radius: 8px;
  padding: 10px 12px;
}

.content-panel input[type="submit"],
.content-panel button {
  background: linear-gradient(180deg, #1b59be, #10397b) !important;
  cursor: pointer;
}

.content-panel .news-swamp-box {
  background: linear-gradient(180deg, rgba(12, 22, 36, 0.96), rgba(8, 14, 24, 0.98)) !important;
  border: 1px solid rgba(61, 106, 172, 0.38) !important;
  border-left: 0 !important;
  border-radius: 14px;
  padding: 0 !important;
  margin-bottom: 22px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.content-panel .news-swamp-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px !important;
  color: var(--gold) !important;
  font-family: "Inter", sans-serif !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

.content-panel .news-swamp-info {
  margin-bottom: 16px !important;
  color: #84b6ff !important;
  font-size: 12px !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
}

.content-panel .swamp-archive-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px !important;
  margin-bottom: 8px !important;
  background: linear-gradient(180deg, rgba(18, 29, 46, 0.9), rgba(12, 20, 33, 0.96)) !important;
  border: 1px solid rgba(60, 99, 158, 0.32) !important;
  border-radius: 10px;
  color: #d7dfeb !important;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.content-panel .swamp-archive-link:hover {
  transform: translateX(4px);
  background: linear-gradient(180deg, rgba(23, 42, 69, 0.92), rgba(15, 28, 46, 0.98)) !important;
  border-color: rgba(99, 160, 255, 0.5) !important;
}

.content-panel .swamp-archive-link small {
  color: #84b6ff !important;
  white-space: nowrap;
}

.content-panel .swamp-btn-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid rgba(73, 121, 194, 0.56) !important;
  background: linear-gradient(180deg, rgba(29, 50, 79, 0.96), rgba(16, 28, 47, 0.98)) !important;
  color: #84b6ff !important;
  font-family: "Inter", sans-serif !important;
  text-decoration: none !important;
}

.content-panel .NewsHeadline {
  margin-bottom: 0;
}

.content-panel .NewsHeadlineBackground {
  min-height: 54px;
  display: grid;
  grid-template-columns: 28px auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(21, 36, 58, 0.96), rgba(12, 24, 40, 0.98)) !important;
  border-bottom: 1px solid rgba(61, 108, 178, 0.55);
  border-radius: 0;
  background-image: none !important;
}

.content-panel .NewsHeadlineIcon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.content-panel .NewsHeadlineDate {
  color: #88bbff;
  font-size: 11px;
  font-family: "Courier New", monospace;
  white-space: nowrap;
}

.content-panel .NewsHeadlineText {
  color: var(--gold);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
}

.content-panel .NewsHeadlineAuthor {
  color: #b5bfd1;
  font-size: 12px;
  white-space: nowrap;
}

.content-panel table[style*="clear:both"] {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: linear-gradient(180deg, rgba(13, 22, 35, 0.96), rgba(8, 14, 24, 0.98)) !important;
  border: 0 !important;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
}

.content-panel table[style*="clear:both"] td {
  background: transparent !important;
  border: 0 !important;
  color: #d9e0eb !important;
  padding: 18px 22px !important;
}

.content-panel table[style*="clear:both"] td[style*="padding-left"] {
  padding-top: 24px !important;
}

.content-panel .news-swamp-box > div[style*="margin-top:10px"] {
  margin: 0 !important;
  padding: 14px 22px 18px !important;
  border-top: 1px solid rgba(61, 106, 172, 0.28) !important;
}

.content-panel .news-swamp-box > div[style*="margin-top:10px"] a {
  color: #7fb4ff !important;
}

.content-panel .rpg-news-container {
  margin-bottom: 22px;
  background: linear-gradient(180deg, rgba(12, 22, 36, 0.96), rgba(8, 14, 24, 0.98));
  border: 1px solid rgba(61, 106, 172, 0.38);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  filter: none;
}

.content-panel .rpg-news-header {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(21, 36, 58, 0.96), rgba(12, 24, 40, 0.98));
  border-bottom: 1px solid rgba(61, 108, 178, 0.55);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}

.content-panel .rpg-news-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(84, 156, 255, 0.04), transparent 30%, transparent 70%, rgba(84, 156, 255, 0.04));
  pointer-events: none;
}

.content-panel .rpg-news-icon-wrapper {
  display: none;
}

.content-panel .rpg-news-title-area {
  display: contents;
  margin-left: 0;
}

.content-panel .rpg-news-date {
  order: 3;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 8px;
  background: linear-gradient(180deg, #4d95f6, #2459ab);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.content-panel .rpg-news-title {
  order: 1;
  margin: 0;
  color: var(--gold);
  font-size: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  text-shadow: none;
}

.content-panel .rpg-news-author {
  order: 2;
  color: #b5bfd1;
  font-size: 12px;
  white-space: nowrap;
  opacity: 1;
}

.content-panel .rpg-news-body {
  background: linear-gradient(180deg, rgba(13, 22, 35, 0.96), rgba(8, 14, 24, 0.98)) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 24px 22px !important;
  color: #d9e0eb !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  position: relative;
}

.content-panel .rpg-news-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(61, 106, 172, 0.18);
  pointer-events: none;
}

.content-panel .rpg-news-footer {
  padding: 14px 22px 18px;
  background: rgba(7, 14, 24, 0.72);
  border-top: 1px solid rgba(61, 106, 172, 0.28);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  text-align: right;
}

.content-panel .rpg-news-link {
  color: #7fb4ff !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.content-panel .rpg-news-link:hover {
  color: #b8d8ff !important;
  text-decoration: underline;
}

.content-panel .rpg-news-body img {
  max-width: 100%;
  height: auto;
  margin: 12px 0 20px;
  border-radius: 12px;
}

.content-panel table[style*="clear:both"] a {
  color: #7fb4ff !important;
}

.content-panel table[style*="clear:both"] img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.download-cta,
.sidebar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 4px;
  font-size: 10px;
}

.download-cta {
  gap: 8px;
  background: linear-gradient(180deg, #468ff1, #1f57aa);
  color: #fff;
  border: 1px solid rgba(115, 173, 255, 0.38);
  box-shadow: 0 10px 24px rgba(30, 87, 170, 0.3);
  font-size: 13.3px;
}

.download-cta i {
  font-size: 13.3px;
  line-height: 1;
}

.ranking-list {
  padding-top: 4px;
}

.rank-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(48, 78, 118, 0.28);
}

.rank-item:last-of-type {
  margin-bottom: 14px;
}

.guild-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 35% 30%, rgba(95, 157, 255, 0.5), transparent 30%),
    linear-gradient(180deg, #182538, #0c1320);
  border: 1px solid rgba(102, 153, 228, 0.18);
}

.rank-avatar {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rank-avatar img {
  width: auto;
  height: 61px;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  image-rendering: auto;
  transform: translate(-15px, -15px);
}

.rank-main strong,
.guild-box strong {
  display: block;
  color: #e1e7f3;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
}

.rank-main small,
.guild-box small {
  display: block;
  color: #7b8ea8;
  font-size: 9.5px;
  margin-top: 3px;
  line-height: 1.1;
}

.rank-level {
  color: #8fc0ff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  align-self: center;
  padding-left: 8px;
}

.sidebar-button {
  gap: 8px;
  border: 1px solid rgba(68, 111, 176, 0.72);
  background: linear-gradient(180deg, rgba(27, 47, 77, 0.96), rgba(16, 29, 49, 0.98));
  color: #d8cfd5;
}

.sidebar-button i {
  line-height: 1;
}

.guild-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.community-copy {
  color: #978d98;
  font-size: 12px;
  margin-bottom: 14px;
}

.footer {
  margin-top: 66px;
  padding: 0 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr 1fr 1fr;
  gap: 22px;
  padding: 38px 16px;
  background: linear-gradient(180deg, rgba(11, 18, 30, 0.92), rgba(8, 13, 21, 0.98));
  border-top: 1px solid rgba(52, 89, 148, 0.54);
  border-bottom: 1px solid rgba(52, 89, 148, 0.38);
}

.footer-brand img {
  width: 118px;
  margin-bottom: 16px;
}

.footer-brand p {
  color: #e7e8f3;
  font-size: 12.88px;
  font-family: "Courier New", monospace;
  max-width: 360px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav b {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(52, 89, 148, 0.44);
}

.footer-nav a {
  color: #e5e5ef;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px 0;
  color: #9a8f99;
  font-size: 12px;
  font-family: "Courier New", monospace;
}

.footer-bottom div:last-child {
  max-width: 480px;
  text-align: right;
}

.muted {
  color: #8b8090;
}

.Odd,
.Even,
.DarkBorder,
.LightBorder {
  background: rgba(16, 16, 24, 0.92) !important;
  color: #dfe3ef !important;
}

.backtop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #4c96fb, #1e57ab);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 14px 28px rgba(30, 87, 171, 0.34);
}

@media (max-width: 1280px) {
  .wrap {
    max-width: calc(100% - 28px);
  }

  .layout-grid {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
  }

  .topbar-inner {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .status-strip {
    grid-column: 1 / -1;
    justify-self: end;
    margin-bottom: 12px;
  }
}

@media (max-width: 1024px) {
  .hero {
    height: 150px;
    margin-bottom: 85px;
  }

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

  .sidebar-left {
    order: 1;
  }

  .content-col {
    order: 2;
  }

  .sidebar-right {
    order: 3;
  }

  .content-panel {
    min-height: auto;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom div:last-child {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .wrap {
    max-width: calc(100% - 20px);
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0 12px;
  }

  .brand {
    justify-content: center;
    height: auto;
  }

  .login-strip,
  .status-strip {
    flex-wrap: wrap;
    justify-content: center;
  }

  .login-field {
    min-width: 120px;
  }

  .hero {
    height: 118px;
  }

  .brand img {
    width: 138px;
  }

  .hero-logo {
    width: min(360px, 80vw);
    max-height: 104px;
  }

  .ticker-row {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .ticker-arrow {
    display: none;
  }

  .content-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
  }

  .content-panel .NewsHeadlineBackground {
    grid-template-columns: 22px 1fr;
    padding: 12px 14px;
  }

  .content-panel .NewsHeadlineDate,
  .content-panel .NewsHeadlineAuthor {
    grid-column: 2;
  }

  .content-panel .NewsHeadlineText {
    font-size: 20px;
  }

  .content-panel .rpg-news-header {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .content-panel .rpg-news-title,
  .content-panel .rpg-news-author,
  .content-panel .rpg-news-date {
    order: initial;
  }

  .content-panel .rpg-news-date {
    justify-self: start;
  }

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