@font-face {
  font-family: Lineage2;
  src: url("fonts/lineage2font.woff2") format("woff2");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --gold: #f2c46d;
  --ivory: #ffe8bd;
  --muted: #c3ac8d;
  --ink: #211611;
  --line: #987143;
  --panel: #160e0bea;
  font-family: Arial, sans-serif;
  color: var(--ivory);
  font-size: 16px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #211611 url("images/videobg/dillisalogo.webp") center top/cover
    fixed no-repeat;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  color: #fff0cf;
}
button {
  font: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #fff0b2;
  outline-offset: 4px;
}
img {
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1,
h2,
h3,
.header,
.button {
  font-family: Lineage2, Georgia, serif;
}
h1 {
  font-size: 28px;
}
h2 {
  font-size: 22px;
}
h3 {
  font-size: 20px;
}
small {
  font-size: 13px;
}
.wrap {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.header {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 16px;
  text-shadow:
    0 2px 3px #000,
    0 0 6px #000;
}
.logo {
  width: 230px;
  flex-shrink: 0;
}
.logo img {
  width: 100%;
  height: auto;
  display: block;
}
.menu {
  flex: 1;
}
.menu summary {
  display: none;
}
.menu:not([open]) > nav {
  display: block;
}
.menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.menu a,
.account {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 15px;
  white-space: nowrap;
}
.menu img,
.account img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.languages {
  display: flex;
  gap: 8px;
}
.languages a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #a88757;
  border-radius: 50%;
  background: #211611b3;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  font-size: 12px;
}
.languages [aria-current] {
  border-color: #fff0cf;
  background: #72532a;
}
.motion {
  margin-left: auto;
  border: 1px solid #a88757;
  color: var(--gold);
  background: var(--panel);
  padding: 8px 12px;
  min-height: 44px;
  font-size: 13px;
  border-radius: 4px;
}
.motion[aria-pressed="true"] {
  background: #72532a;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  margin-top: 32px;
  min-height: 70vh;
}
.servers,
.content {
  min-width: 0;
}
.servers {
  display: grid;
  gap: 32px;
}
.server-status {
  text-align: center;
  padding: 16px 24px 24px;
  text-shadow:
    0 2px 4px #000,
    0 0 8px #000;
  background: linear-gradient(#160e0bd9, #160e0b80);
  border: 1px solid #98714388;
  border-radius: 6px;
}
.server-status h2 {
  margin-bottom: 4px;
}
.server-status p {
  margin: 0;
}
.server-bar {
  display: block;
  width: 100%;
  aspect-ratio: 3/1;
  object-fit: cover;
  object-position: center 48%;
  margin: 8px 0 0;
}
.online {
  color: #bfe49b;
}
.text-link {
  display: inline-block;
  min-height: 44px;
  padding-block: 10px;
}
.ranking {
  position: relative;
  isolation: isolate;
  margin-top: 16px;
  padding: 32px 28px 40px;
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: start;
  gap: 16px 8px;
  background: #160e0b;
  border: 2px solid #987143;
  border-radius: 6px;
  box-shadow: 0 12px 30px #0005;
}
.ranking:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("images/bg/bg__statistics.png") center/100% 100% no-repeat;
  opacity: 0.38;
}
.ranking h3 {
  align-self: center;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
}
.rating-controls {
  display: flex;
  gap: 4px;
}
.rating-controls button {
  background: #2d1c12;
  color: var(--gold);
  border: 1px solid #987143;
  min-height: 44px;
  padding: 4px 8px;
  font-family: Lineage2, Georgia, serif;
}
.rating-controls [aria-pressed="true"] {
  background: #b38c50;
  color: #160e0b;
}
.rating-panel {
  grid-column: 1/-1;
  min-width: 0;
}
.rating-panel[hidden] {
  display: none;
}
.rating-panel table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  table-layout: fixed;
}
.rating-panel th:first-child {
  width: 32px;
}
.rating-panel th:last-child {
  width: 64px;
}
.rating-panel th,
.rating-panel td {
  text-align: left;
  padding: 10px 4px;
  border-bottom: 1px solid #98714344;
  overflow-wrap: anywhere;
}
.rating-panel th:last-child,
.rating-panel td:last-child {
  text-align: right;
}
.rating-panel th {
  color: var(--muted);
  font-weight: 400;
}
.rating-link {
  grid-column: 1/-1;
  min-height: 44px;
  padding-top: 8px;
}
.news,
.panel,
.static__content {
  background: var(--panel);
  border: 1px solid #98714399;
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0 12px 32px #0003;
}
.content {
  display: grid;
  gap: 24px;
}
.post {
  padding-block: 24px;
  border-top: 1px solid #98714355;
  overflow-wrap: anywhere;
}
.post h2 {
  margin-top: 8px;
}
.post time {
  color: var(--muted);
  font-size: 13px;
}
.post p {
  color: #e0d2be;
  white-space: pre-line;
}
.post-image {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 16px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid #b59256;
  background: linear-gradient(#72512c, #382314);
  border-radius: 3px;
}
.empty {
  color: var(--muted);
  padding-block: 24px;
}
.thread {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid #98714344;
  overflow-wrap: anywhere;
}
.thread small {
  display: block;
  color: var(--muted);
}
.static__content {
  overflow-wrap: anywhere;
}
.map__big {
  font-size: 18px;
  color: var(--gold);
  margin-top: 0;
}
.map__list {
  font-size: 16px;
  line-height: 1.9;
}
.footer {
  margin-top: 64px;
  padding: 32px;
  text-align: center;
  background: var(--panel);
  border-top: 1px solid #98714399;
}
.footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.footer nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer small {
  color: var(--muted);
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  background: var(--ink);
  padding: 12px;
  z-index: 20;
}
@media (min-width: 1101px) {
  .menu a {
    flex-direction: column;
    gap: 0;
  }
  .header {
    gap: 16px;
  }
  .header .motion {
    font-family: Arial, sans-serif;
  }
}
@media (max-width: 1100px) {
  .header {
    gap: 16px;
  }
  .logo {
    width: 190px;
  }
  .menu {
    order: 4;
    flex-basis: 100%;
  }
  .menu ul {
    justify-content: space-between;
  }
  .account {
    margin-left: auto;
  }
  .layout {
    gap: 24px;
    grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
  }
  .news,
  .panel,
  .static__content {
    padding: 24px;
  }
  .ranking {
    padding-inline: 20px;
  }
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  body {
    background-attachment: scroll;
    background-size: auto 100vh;
  }
  .header {
    gap: 12px;
    padding-block: 12px;
  }
  .logo {
    width: 160px;
  }
  .account {
    font-size: 14px;
  }
  .account img {
    width: 36px;
    height: 36px;
  }
  .languages {
    flex-wrap: wrap;
  }
  .motion {
    font-family: Arial, sans-serif;
  }
  .menu {
    order: 3;
    flex: 1;
  }
  .menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid #987143;
    border-radius: 4px;
    background: var(--panel);
    cursor: pointer;
    list-style: none;
  }
  .menu summary::-webkit-details-marker {
    display: none;
  }
  .menu summary:before {
    content: "☰";
    margin-right: 8px;
  }
  .menu:not([open]) > nav {
    display: none;
  }
  .menu nav {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 10;
    background: #211611fa;
    border: 1px solid #987143;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 16px 24px #0008;
  }
  .menu ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .menu a {
    justify-content: flex-start;
    white-space: normal;
  }
  .languages {
    order: 4;
  }
  .motion {
    order: 5;
    margin-left: 0;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 24px;
  }
  .servers {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .server {
    min-width: 0;
  }
  .server-status {
    padding: 16px;
  }
  .ranking {
    min-height: 0;
    padding: 24px 16px;
    grid-template-columns: minmax(0, 1fr);
  }
  .ranking h3 {
    text-align: center;
  }
  .rating-controls {
    justify-content: center;
  }
  .rating-panel table {
    font-size: 13px;
  }
  .footer {
    margin-top: 32px;
    padding: 24px 16px;
  }
  .news,
  .panel,
  .static__content {
    padding: 24px;
  }
  .post-image {
    max-height: 220px;
  }
}
@media (max-width: 560px) {
  .servers {
    grid-template-columns: minmax(0, 1fr);
  }
  .ranking {
    padding: 28px 24px;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 380px;
  }
  .ranking h3 {
    text-align: left;
  }
  .news,
  .panel,
  .static__content {
    padding: 20px;
  }
  .post {
    padding-block: 20px;
  }
  h1 {
    font-size: 25px;
  }
  h2 {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .backdrop video {
    display: none;
  }
}



