:root {
  color-scheme: dark;
  --page-bg: #05070b;
  --ink: #071225;
  --ink-soft: #1c3150;
  --light: #e9f3ff;
  --muted: #b7cae5;
  --gold: #dca73c;
  --gold-light: #ffe083;
  --blue: #0b397f;
  --blue-deep: #06142d;
  --blue-dark: #020817;
  --panel-blue: rgba(4, 28, 70, 0.82);
  --panel-blue-soft: rgba(11, 49, 105, 0.58);
  --paper: rgba(201, 216, 222, 0.72);
  --paper-strong: rgba(218, 231, 236, 0.78);
  --line: rgba(99, 154, 206, 0.46);
  --gold-line: rgba(226, 174, 67, 0.58);
  --shadow: rgba(0, 0, 0, 0.68);
  --sans: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", ui-serif, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background-color: var(--page-bg);
  background-image:
    linear-gradient(90deg, #05070b 0%, rgba(5, 7, 11, 0.5) 18%, rgba(5, 7, 11, 0.08) 50%, rgba(5, 7, 11, 0.5) 82%, #05070b 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0.1), rgba(5, 7, 11, 0.68)),
    url("assets/hero-day.png");
  background-attachment: fixed, fixed, fixed;
  background-position: center top, center top, center top;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--light);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 50% 7%, rgba(155, 201, 230, 0.22), transparent 18rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.44));
  content: "";
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header,
.layout-shell,
.site-footer {
  width: min(1050px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  justify-items: center;
  padding: 14px 0 16px;
}

.logo-link {
  display: block;
  width: min(540px, 92vw);
  text-decoration: none;
}

.site-logo {
  width: 100%;
  max-height: 232px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.78));
}

.tab-nav {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.tab-button,
.side-button,
.footer-button,
.action-button {
  position: relative;
  min-height: 34px;
  border: 1px solid rgba(224, 174, 67, 0.74);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 224, 131, 0.18), rgba(9, 22, 42, 0.94) 36%, rgba(5, 12, 25, 0.98)),
    linear-gradient(90deg, rgba(130, 82, 20, 0.44), rgba(25, 91, 168, 0.3) 36%, rgba(255, 233, 154, 0.12) 50%, rgba(25, 91, 168, 0.3) 64%, rgba(130, 82, 20, 0.44));
  color: #f5e0aa;
  font: 800 0.78rem/1 var(--sans);
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.88),
    0 0 8px rgba(83, 155, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 176, 0.42),
    inset 0 -1px 0 rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(29, 82, 145, 0.42),
    0 0 0 1px rgba(55, 33, 9, 0.7),
    0 8px 16px rgba(0, 0, 0, 0.48);
}

.tab-button::before,
.side-button::before,
.footer-button::before,
.action-button::before {
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 222, 116, 0.32);
  content: "";
  pointer-events: none;
}

.tab-button::after,
.side-button::after,
.footer-button::after,
.action-button::after {
  position: absolute;
  top: 4px;
  right: 8px;
  left: 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 238, 174, 0.78), transparent);
  content: "";
  pointer-events: none;
}

.tab-button:hover,
.tab-button:focus-visible,
.side-button:hover,
.side-button:focus-visible,
.footer-button:hover,
.footer-button:focus-visible {
  border-color: rgba(255, 224, 118, 0.94);
  background:
    linear-gradient(180deg, rgba(255, 224, 118, 0.3), rgba(16, 58, 111, 0.96) 38%, rgba(4, 18, 39, 0.99)),
    linear-gradient(90deg, rgba(155, 94, 20, 0.5), rgba(33, 111, 200, 0.36) 38%, rgba(255, 245, 201, 0.18) 50%, rgba(33, 111, 200, 0.36) 62%, rgba(155, 94, 20, 0.5));
  color: #fff3ce;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 203, 0.56),
    inset 0 -1px 0 rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(79, 154, 245, 0.36),
    0 0 0 1px rgba(92, 58, 13, 0.82),
    0 0 18px rgba(224, 174, 67, 0.22),
    0 8px 16px rgba(0, 0, 0, 0.5);
}

.tab-button.is-active,
.side-button.is-active {
  border-color: rgba(255, 225, 122, 1);
  background:
    linear-gradient(180deg, rgba(255, 227, 126, 0.46), rgba(17, 69, 133, 0.98) 34%, rgba(3, 16, 37, 1) 78%, rgba(101, 62, 15, 0.96)),
    linear-gradient(90deg, rgba(176, 109, 25, 0.62), rgba(38, 122, 222, 0.42) 36%, rgba(255, 246, 204, 0.24) 50%, rgba(38, 122, 222, 0.42) 64%, rgba(176, 109, 25, 0.62));
  color: #fff6d8;
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 219, 0.62),
    inset 0 -1px 0 rgba(0, 0, 0, 0.94),
    inset 0 0 12px rgba(64, 147, 255, 0.32),
    0 0 0 1px rgba(111, 70, 16, 0.88),
    0 0 18px rgba(224, 174, 67, 0.32),
    0 8px 16px rgba(0, 0, 0, 0.52);
}

.layout-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 56px;
}

.server-menu {
  min-height: 162px;
  padding: 15px 14px 18px;
  border: 1px solid rgba(224, 174, 67, 0.38);
  background:
    linear-gradient(180deg, rgba(4, 42, 91, 0.86), rgba(2, 14, 38, 0.94));
  box-shadow:
    inset 0 0 0 1px rgba(111, 173, 255, 0.12),
    inset 0 0 22px rgba(224, 174, 67, 0.06),
    0 18px 34px rgba(0, 0, 0, 0.5);
}

.side-title,
.panel-bar {
  min-height: 38px;
  padding: 12px 18px;
  border: 1px solid rgba(224, 174, 67, 0.34);
  background:
    linear-gradient(180deg, rgba(8, 68, 143, 0.92), rgba(2, 31, 80, 0.98)),
    linear-gradient(90deg, rgba(224, 174, 67, 0.16), rgba(87, 166, 255, 0.12), rgba(224, 174, 67, 0.16));
  color: #f2ddab;
  font: 850 0.82rem/1 var(--sans);
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(74, 151, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.38);
}

.side-title::before,
.panel-bar::before {
  color: #87c6ff;
  content: "◆ ";
}

.side-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  min-height: 32px;
  color: #ecd194;
}

.content-column {
  min-width: 0;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.article-frame {
  position: relative;
  min-height: 470px;
  margin-top: 18px;
  padding: 54px 26px 34px;
  overflow: hidden;
  border: 1px solid rgba(224, 174, 67, 0.36);
  background:
    linear-gradient(180deg, rgba(8, 30, 65, 0.86), rgba(3, 13, 33, 0.9)),
    linear-gradient(90deg, rgba(224, 174, 67, 0.08), rgba(60, 139, 235, 0.08) 34%, rgba(60, 139, 235, 0.08) 66%, rgba(224, 174, 67, 0.08));
  color: #e7f1ff;
  box-shadow:
    inset 0 0 0 1px rgba(82, 156, 246, 0.12),
    inset 0 0 44px rgba(0, 0, 0, 0.36),
    0 24px 48px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.article-frame::before,
.article-frame::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.article-frame::before {
  inset: 12px;
  border: 1px solid rgba(255, 224, 118, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(69, 142, 232, 0.12),
    inset 0 0 28px rgba(255, 224, 118, 0.04);
}

.article-frame::after {
  top: 27px;
  right: 36px;
  left: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 118, 0.48), rgba(82, 156, 246, 0.22), rgba(255, 224, 118, 0.48), transparent);
}

.tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  margin: 0 0 8px;
  padding: 6px 12px;
  border: 1px solid rgba(224, 174, 67, 0.48);
  background: linear-gradient(180deg, rgba(16, 74, 150, 0.92), rgba(5, 31, 79, 0.98));
  color: #ffe8ad;
  font: 850 0.76rem/1 var(--sans);
  letter-spacing: 0;
  text-transform: uppercase;
}

.article-frame h1 {
  margin: 0 0 12px;
  color: #fff0c2;
  font: 800 1.55rem/1.1 var(--serif);
  letter-spacing: 0;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.72);
}

.article-frame p {
  max-width: 720px;
  margin: 0 0 14px;
  color: #d5e4f7;
}

.news-list,
.info-table {
  display: grid;
  gap: 0;
  width: min(100%, 640px);
  margin: 22px 0;
  border-top: 1px solid rgba(224, 174, 67, 0.26);
}

.news-list div,
.info-table div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(224, 174, 67, 0.22);
}

.news-list span,
.info-table dt {
  color: #8fc8ff;
  font-weight: 900;
}

.news-list strong,
.info-table dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #f4e8c9;
  font-weight: 850;
}

.action-button {
  display: inline-flex;
  min-width: 190px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: #f8fbff;
}

.action-primary {
  border-color: rgba(250, 224, 138, 0.76);
  background:
    linear-gradient(180deg, rgba(255, 226, 120, 0.98), rgba(184, 111, 24, 0.98)),
    linear-gradient(90deg, rgba(105, 61, 13, 0.26), rgba(255, 255, 255, 0.16), rgba(105, 61, 13, 0.26));
  color: #130e08;
  text-shadow: 0 1px 0 rgba(255, 236, 176, 0.62);
}

.small-note {
  margin-top: 16px;
  color: #b9cdeb;
  font-size: 0.92rem;
}

.register-form,
.activate-form {
  display: grid;
  gap: 13px;
  width: min(100%, 540px);
  margin-top: 20px;
}

.activate-form {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(98, 160, 233, 0.22);
}

.activate-form h2 {
  margin: 0;
  color: #f4e8c9;
  font: 950 1.12rem/1.2 var(--serif);
}

.register-form label,
.activate-form label {
  display: grid;
  gap: 5px;
  color: #d8e8ff;
  font: 900 0.82rem/1.2 var(--sans);
}

.register-form input,
.activate-form input {
  width: 100%;
  min-height: 39px;
  padding: 10px 12px;
  border: 1px solid rgba(98, 160, 233, 0.48);
  border-radius: 0;
  outline: none;
  background: rgba(4, 16, 40, 0.88);
  color: #eaf4ff;
}

.register-form input::placeholder,
.activate-form input::placeholder {
  color: rgba(185, 210, 241, 0.42);
}

.register-form input:focus,
.activate-form input:focus {
  border-color: rgba(224, 172, 64, 0.94);
  box-shadow: 0 0 0 3px rgba(224, 172, 64, 0.18);
}

.check-line {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.check-line input {
  width: 18px;
  height: 18px;
  min-height: auto;
  margin: 1px 0 0;
  accent-color: var(--gold);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #d5e4f7;
  font-weight: 800;
}

.form-status.is-error {
  color: #ffb39e;
}

.form-status.is-success {
  color: #bce7aa;
}

.preview-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.preview-slot {
  aspect-ratio: 16 / 9;
  min-height: 130px;
  border: 1px dashed rgba(224, 174, 67, 0.42);
  background:
    linear-gradient(180deg, rgba(3, 17, 39, 0.34), rgba(3, 17, 39, 0.48));
  box-shadow: inset 0 0 0 1px rgba(91, 163, 255, 0.12);
}

.site-footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 28px;
  color: var(--muted);
  font-weight: 800;
}

.footer-button {
  min-width: 150px;
  padding: 0 14px;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .tab-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tab-button:first-child {
    grid-column: 1 / -1;
  }

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

  .server-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .side-title {
    grid-column: 1 / -1;
  }

  .side-button {
    margin-top: 0;
  }

  .article-frame {
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .layout-shell,
  .site-footer {
    width: min(100% - 22px, 1050px);
  }

  .site-header {
    padding-top: 12px;
  }

  .logo-link {
    width: min(100%, 430px);
  }

  .tab-nav,
  .server-menu,
  .preview-slots {
    grid-template-columns: 1fr;
  }

  .article-frame {
    min-height: 390px;
    padding: 70px 16px 24px;
  }

  .news-list div,
  .info-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .action-button {
    width: 100%;
  }

  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
