:root {
  color-scheme: dark;
  font-family: Georgia, "Times New Roman", serif;
  color: #f1e2c9;
  background: #111522;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --gold: #e0c69d;
  --gold-bright: #f0d7ae;
  --teal: #4ed2dc;
  --ink: #111522;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: #111522;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #7ae5ef;
  outline-offset: 5px;
}

.site-canvas {
  position: relative;
  isolation: isolate;
  width: min(100%, 1920px);
  min-height: 2988px;
  margin-inline: auto;
  overflow: hidden;
  background-color: #111522;
}

/* Макет актуальный\\сайт3.png: Фон.png лежит под всеми слоями страницы. */
.site-canvas::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("assets/background.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  content: "";
  pointer-events: none;
}

.hero {
  position: relative;
  height: 1000px;
}

/* The logo and Start button sit above the artwork, as in сайт3.png. */
.hero__brand {
  position: absolute;
  z-index: 2;
  top: 4px;
  left: 50%;
  display: block;
  width: 320px;
  transform: translateX(-50%);
}

.hero__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__brand:hover img {
  content: url("assets/logo-hover.png");
}

.hero__forum-link {
  display: none;
}

.hero__launch {
  position: absolute;
  z-index: 4;
  top: 970px;
  left: 50%;
  width: 425px;
  transform: translateX(-50%);
  text-align: center;
}

.launch-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: not-allowed;
}

.launch-button img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.88;
}

.launch-button:disabled:hover img {
  content: url("assets/start.png");
}

.hero__status {
  display: inline-block;
  margin: -4px 0 0;
  padding: 3px 12px;
  border: 1px solid rgb(224 198 157 / 42%);
  background: rgb(12 17 28 / 88%);
  color: var(--gold-bright);
  font-size: 13px;
  line-height: 1.3;
  text-shadow: 0 1px 4px #000;
}

.content-stage {
  position: relative;
  isolation: isolate;
  min-height: 1988px;
}

/* Фон.png уже содержит рамку и боковую панель; the columns below only overlay content. */
.content-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 320px minmax(0, 873px) 557px;
  align-items: start;
  gap: 10px;
  width: min(1770px, calc(100% - 40px));
  margin-inline: auto;
}

/* The left navigation follows the screenshot's five vertically stacked sprite buttons. */
.sidebar {
  position: relative;
  min-height: 960px;
  padding: 220px 0 0;
  text-align: center;
}

.sidebar__nav ul {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-control {
  position: relative;
  display: block;
  width: min(256px, calc(100% - 18px));
  height: 60px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
}

.menu-control img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.menu-control__hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 140ms ease;
}

.menu-control:hover .menu-control__hover {
  opacity: 1;
}

.menu-control--disabled {
  cursor: not-allowed;
  opacity: 0.86;
}

.sidebar__note {
  width: min(270px, calc(100% - 32px));
  margin: 13px auto 0;
  color: #e5d5b8;
  font-size: 12px;
  line-height: 1.4;
  text-shadow: 0 2px 4px #000;
}

.server-status {
  position: relative;
  width: 188px;
  height: 204px;
  margin: 13px auto 0;
}

.server-status img {
  display: block;
  width: 100%;
  height: 100%;
}

.server-status__value {
  position: absolute;
  top: 112px;
  left: 50%;
  width: 88px;
  padding: 4px 2px;
  transform: translateX(-50%);
  background: rgb(15 24 34 / 90%);
  color: #f1ddb7;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 1px 2px #000;
}

.news-column {
  position: relative;
  min-height: 1840px;
  padding-top: 150px;
}

.news-column__title {
  margin: 0 0 26px;
  color: #e4c5a3;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 5px #000;
}

/* news_block.png is the original 873 by 274 news card frame. */
.news-card {
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  min-height: 274px;
  padding: 30px 36px;
  background-image: url("assets/news-block.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}

.news-card__image {
  display: block;
  width: 212px;
  height: 212px;
  border: 0;
  object-fit: cover;
}

.news-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
}

.news-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.news-card__header h2 {
  margin: 0;
  color: #e8c8a6;
  font-size: 31px;
  line-height: 1.1;
  text-transform: uppercase;
}

.news-card__header time {
  flex: 0 0 auto;
  color: #e4d0b3;
  font-size: 15px;
  font-weight: 700;
}

.news-card__excerpt {
  margin: 16px 0 0;
  color: #f0e6d8;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
  text-shadow: 0 1px 2px #000;
}

.news-card__archive {
  margin: 9px 0 0;
  color: #c9b292;
  font-size: 12px;
  line-height: 1.35;
}

.news-card__more {
  display: grid;
  justify-items: end;
  gap: 2px;
  margin-top: auto;
  color: #d9c6a5;
  font-size: 11px;
  text-align: right;
}

.news-card__more img {
  display: block;
  width: min(210px, 100%);
  height: auto;
  opacity: 0.72;
}

.news-card__more span {
  padding-right: 10px;
}

.news-archive {
  position: absolute;
  bottom: 118px;
  left: 50%;
  display: grid;
  justify-items: center;
  width: min(492px, 92%);
  transform: translateX(-50%);
  text-align: center;
}

.news-archive img {
  display: block;
  width: 100%;
  height: auto;
}

.news-archive span {
  position: absolute;
  top: 7px;
  color: #b9ddeb;
  font-size: 17px;
  font-weight: 700;
  text-shadow: 0 1px 3px #000;
}

.news-archive small {
  margin-top: 4px;
  color: #d5c3a3;
  font-size: 12px;
  line-height: 1.35;
  text-shadow: 0 1px 4px #000;
}

.server-column {
  position: relative;
  width: 557px;
  margin-top: -132px;
}

.vote-promo {
  position: relative;
  width: 317px;
  margin: 0 12px 2px auto;
  text-align: center;
}

.vote-promo img {
  display: block;
  width: 100%;
  height: auto;
}

.vote-promo figcaption {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  padding: 2px 4px;
  background: rgb(12 17 28 / 80%);
  color: #f0dcb7;
  font-size: 10px;
  line-height: 1.25;
}

.leaderboard {
  position: relative;
  width: 100%;
  aspect-ratio: 557 / 660;
}

.leaderboard__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.leaderboard__status {
  position: absolute;
  z-index: 1;
  top: 14.5%;
  right: 13%;
  left: 13%;
  margin: 0;
  padding: 3px 6px;
  border: 1px solid rgb(201 165 110 / 58%);
  background: rgb(14 23 34 / 92%);
  color: #ecd5ad;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 1px 2px #000;
}

.leaderboard__rows {
  position: absolute;
  top: 19%;
  right: 13.5%;
  bottom: 7%;
  left: 13.5%;
  display: grid;
  grid-template-rows: repeat(10, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard__rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  padding: 0 9px 0 52px;
  color: #e5dac8;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 3px #000;
}

.leaderboard__rows li span:last-child {
  text-align: center;
}

.statistics {
  position: relative;
  width: min(521px, 100%);
  margin: 13px auto 0;
  aspect-ratio: 521 / 284;
  text-align: center;
}

.statistics__frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.statistics__value {
  position: absolute;
  left: 0;
  width: 100%;
  color: #d6f5fa;
  font-size: clamp(22px, 1.55vw, 30px);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 5px #000;
}

.statistics__value--accounts {
  top: 39%;
}

.statistics__value--online {
  top: 82%;
}

.statistics__status {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  margin: 0;
  color: #ddd0b8;
  font-size: 10px;
  line-height: 1.2;
  text-shadow: 0 1px 3px #000;
}

.site-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 260px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 5% 22px;
  color: #e5d2b3;
  font-size: 15px;
  text-shadow: 0 1px 4px #000;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #e8d2ad;
  text-decoration-color: rgb(232 210 173 / 72%);
  text-underline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 1600px) and (min-width: 1101px) {
  .site-canvas {
    min-height: 155.625vw;
  }

  .hero {
    height: 52.083vw;
  }

  .hero__brand {
    width: min(320px, 19.4vw);
  }

  .hero__launch {
    top: calc(52.083vw - 30px);
    width: min(425px, 25vw);
  }

  .content-stage {
    min-height: 103.542vw;
  }

  .content-grid {
    grid-template-columns: minmax(220px, 18vw) minmax(0, 1fr) minmax(320px, 29vw);
    gap: 12px;
    width: calc(100% - 48px);
  }

  .sidebar {
    min-height: 51vw;
    padding-top: 11.45vw;
  }

  .menu-control {
    width: min(256px, calc(100% - 16px));
    height: auto;
    aspect-ratio: 256 / 60;
  }

  .sidebar__note {
    margin-top: 1vw;
    font-size: clamp(10px, 0.75vw, 12px);
  }

  .server-status {
    width: min(188px, 14vw);
    height: auto;
    aspect-ratio: 188 / 204;
  }

  .server-status__value {
    top: 55%;
    width: 47%;
    font-size: clamp(9px, 0.68vw, 12px);
  }

  .news-column {
    min-height: 96vw;
    padding-top: 7.8vw;
  }

  .news-column__title {
    margin-bottom: 1.35vw;
    font-size: clamp(27px, 2vw, 38px);
  }

  .news-card {
    grid-template-columns: min(212px, 24.3%) minmax(0, 1fr);
    gap: 2.3%;
    min-height: auto;
    aspect-ratio: 873 / 274;
    padding: 3.4% 4.1%;
  }

  .news-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .news-card__header h2 {
    font-size: clamp(19px, 1.65vw, 31px);
  }

  .news-card__header time {
    font-size: clamp(11px, 0.8vw, 15px);
  }

  .news-card__excerpt {
    margin-top: 1vw;
    font-size: clamp(12px, 0.9vw, 17px);
  }

  .news-card__archive,
  .news-card__more {
    font-size: clamp(9px, 0.68vw, 12px);
  }

  .news-archive {
    bottom: 6.2vw;
  }

  .server-column {
    width: 100%;
    margin-top: -6.9vw;
  }

  .vote-promo {
    width: min(317px, 57%);
    margin-right: 2.2%;
  }

  .vote-promo figcaption {
    font-size: clamp(8px, 0.55vw, 10px);
  }

  .leaderboard__status {
    font-size: clamp(9px, 0.7vw, 12px);
  }

  .leaderboard__rows li {
    grid-template-columns: minmax(0, 1fr) 12%;
    padding-right: 2%;
    padding-left: 13%;
    font-size: clamp(10px, 0.88vw, 17px);
  }

  .statistics__status {
    font-size: clamp(8px, 0.55vw, 10px);
  }

  .site-footer {
    min-height: 13.5vw;
    font-size: clamp(12px, 0.78vw, 15px);
  }
}

@media (max-width: 1100px) {
  .site-canvas {
    min-height: 0;
    background-color: #111522;
    background-image: linear-gradient(180deg, transparent 0 560px, rgb(17 21 34 / 94%) 760px);
  }

  .site-canvas::before {
    background-image: url("assets/background-mobile.png");
    background-size: auto 720px;
    background-position: center top;
  }

  .hero {
    height: clamp(560px, 62vw, 720px);
  }

  .hero__brand {
    width: min(320px, 72vw);
  }

  .hero__forum-link {
    position: absolute;
    z-index: 3;
    top: 318px;
    left: 50%;
    display: block;
    width: min(256px, 66vw);
    aspect-ratio: 256 / 60;
    transform: translateX(-50%);
  }

  .hero__forum-link img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .hero__forum-hover {
    opacity: 0;
    transition: opacity 140ms ease;
  }

  .hero__forum-link:hover .hero__forum-hover {
    opacity: 1;
  }

  .hero__launch {
    top: auto;
    bottom: -82px;
    width: min(425px, 88vw);
  }

  .content-stage {
    min-height: 0;
    padding: 106px 0 0;
  }

  .content-grid {
    display: flex;
    width: min(873px, calc(100% - 32px));
    flex-direction: column;
    gap: 34px;
    align-items: center;
  }

  .sidebar {
    width: min(320px, 100%);
    min-height: 960px;
    padding-top: 220px;
  }

  .news-column {
    width: 100%;
    min-height: 0;
    padding-top: 0;
  }

  .news-column__title {
    margin-bottom: 24px;
    font-size: clamp(28px, 5vw, 38px);
  }

  .news-card {
    min-height: 274px;
    aspect-ratio: auto;
    padding: 30px 36px;
  }

  .news-card__image {
    width: 100%;
    max-width: 212px;
    height: auto;
    aspect-ratio: 1;
  }

  .news-card__header h2 {
    font-size: clamp(21px, 4vw, 31px);
  }

  .news-card__header time {
    font-size: clamp(11px, 1.8vw, 15px);
  }

  .news-card__excerpt {
    font-size: clamp(13px, 2.2vw, 17px);
  }

  .news-archive {
    position: relative;
    bottom: auto;
    left: auto;
    margin: 46px auto 0;
    transform: none;
  }

  .server-column {
    display: grid;
    width: min(557px, 100%);
    justify-items: center;
    gap: 24px;
    margin: 0;
  }

  .vote-promo {
    width: min(317px, 82%);
    margin: 0 auto;
  }

  .statistics {
    margin-top: 0;
  }

  .site-footer {
    position: relative;
    min-height: 230px;
    margin-top: 34px;
  }
}

@media (max-width: 600px) {
  .site-canvas::before {
    background-size: auto 660px;
    background-position: center top;
  }

  .hero {
    height: 600px;
  }

  .hero__brand {
    top: 0;
    width: min(300px, 78vw);
  }

  .hero__launch {
    bottom: -78px;
    width: min(425px, 94vw);
  }

  .hero__status {
    max-width: 90%;
    font-size: 12px;
  }

  .content-stage {
    padding-top: 96px;
  }

  .content-grid {
    width: calc(100% - 24px);
    gap: 30px;
  }

  .sidebar {
    min-height: 910px;
    padding-top: 208px;
  }

  .sidebar__nav ul {
    gap: 14px;
  }

  .menu-control {
    width: min(256px, calc(100% - 22px));
    height: auto;
    aspect-ratio: 256 / 60;
  }

  .sidebar__note {
    margin-top: 11px;
    font-size: 11px;
  }

  .server-status {
    width: 174px;
    height: auto;
    margin-top: 12px;
    aspect-ratio: 188 / 204;
  }

  .server-status__value {
    top: 55%;
    width: 47%;
    font-size: 11px;
  }

  .news-column__title {
    margin-bottom: 18px;
    font-size: clamp(26px, 7vw, 34px);
  }

  .news-card {
    grid-template-columns: minmax(88px, 29%) minmax(0, 1fr);
    gap: 12px;
    min-height: 260px;
    padding: 25px 20px;
  }

  .news-card__header {
    flex-wrap: wrap;
    gap: 3px 8px;
  }

  .news-card__header h2 {
    font-size: clamp(18px, 5vw, 23px);
  }

  .news-card__header time {
    font-size: 11px;
  }

  .news-card__excerpt {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.35;
  }

  .news-card__archive,
  .news-card__more {
    font-size: 10px;
  }

  .news-card__more img {
    width: min(160px, 100%);
  }

  .news-card__more span {
    padding-right: 2px;
  }

  .news-archive {
    width: min(492px, 94%);
  }

  .news-archive span {
    top: 5px;
    font-size: 14px;
  }

  .news-archive small {
    font-size: 11px;
  }

  .vote-promo {
    width: min(317px, 86%);
  }

  .leaderboard__status {
    font-size: clamp(9px, 2.5vw, 12px);
  }

  .leaderboard__rows {
    gap: 2px;
  }

  .leaderboard__rows li {
    grid-template-columns: minmax(0, 1fr) 13%;
    padding-right: 2%;
    padding-left: 13%;
    font-size: clamp(10px, 3vw, 16px);
  }

  .statistics__value {
    font-size: clamp(20px, 6vw, 27px);
  }

  .statistics__status {
    font-size: 9px;
  }

  .site-footer {
    min-height: 205px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 18px 18px;
    font-size: 13px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
