:root {
  color-scheme: dark;
  --ink: #e6eadf;
  --lime: #a8ed72;
  --line: #455533;
  --gold: #dad0a7;
  --serif: Georgia, "Times New Roman", serif;
  font:
    clamp(15px, 0.84vw, 23px) / 1.45 system-ui,
    sans-serif;
  background: #080b08;
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a,
button {
  font: inherit;
  color: inherit;
}
a {
  text-decoration: none;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #aeff80;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: none;
}
.brand,
.chronicle,
h1,
h2,
.fair {
  font-family: var(--serif);
}
header {
  background: #070c09f5;
  border-bottom: 1px solid #415137;
  position: sticky;
  top: 0;
  z-index: 5;
}
.bar {
  min-height: 3.75rem;
  max-width: 112rem;
  padding: 0 3%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f0e9ce;
  text-transform: uppercase;
  font-size: 1.55rem;
  font-weight: bold;
  white-space: nowrap;
}
.brand .icon,
h2 .icon,
.file small,
.tiles .icon,
.stat .icon {
  color: var(--lime);
}
nav,
.langs,
.actions,
.tabs {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
nav {
  gap: clamp(0.65rem, 2.4vw, 3rem);
}
nav a,
nav button,
footer button,
footer a.invite {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.81rem;
  font-weight: 650;
  min-height: 44px;
  text-transform: uppercase;
}
nav a:hover,
nav button:hover,
footer button:hover,
footer a.invite:hover {
  color: var(--lime);
}
.langs {
  gap: 0.22rem;
}
.langs button,
.tabs button,
dialog button {
  border: 1px solid #415337;
  border-radius: 4px;
  padding: 0.3rem 0.55rem;
  min-height: 36px;
  font-size: 0.78rem;
}
.langs button[aria-pressed="true"],
.tabs button[aria-pressed="true"] {
  color: #e6ffcb;
  border-color: #85bb54;
  background: linear-gradient(#193716, #12220f);
  box-shadow: inset 0 0 8px #60952a45;
}
.flag {
  width: 0.9rem;
  height: 0.66rem;
  display: inline-block;
  margin-right: 0.28rem;
  border-radius: 2px;
}
.cs {
  background:
    linear-gradient(38deg, #315797 26%, transparent 27%),
    linear-gradient(142deg, #315797 26%, transparent 27%),
    linear-gradient(white 50%, #cd3942 50%);
}
.ru {
  background: linear-gradient(white 33%, #3770b5 33% 66%, #ce4346 66%);
}
.en {
  background:
    linear-gradient(90deg, transparent 39%, #cc4248 39% 61%, transparent 61%),
    linear-gradient(transparent 38%, #cc4248 38% 62%, transparent 62%),
    linear-gradient(32deg, transparent 42%, white 43% 54%, transparent 55%),
    #264174;
}
#menub {
  display: none;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 1.25rem 1rem 1.65rem;
  min-height: clamp(415px, 33vw, 880px);
  display: grid;
  place-items: center;
}
.hero picture,
.hero picture img,
.hero:after,
.mist,
.embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero picture {
  z-index: -4;
}
.hero picture img {
  object-fit: cover;
  object-position: center 42%;
}
.hero:after {
  content: "";
  z-index: -3;
  background:
    linear-gradient(0deg, #080b08, transparent 19%),
    radial-gradient(ellipse at center, #01090377, transparent 62%);
}
.heroBody {
  width: min(37rem, 100%);
  text-shadow: 0 2px 6px black;
}
.hero h1 {
  margin: 0;
  line-height: 0;
}
.hero h1 img {
  width: min(23.5rem, 80%);
  filter: drop-shadow(0 3px 4px #000);
  animation: glow 8s ease-in-out infinite alternate;
}
.chronicle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.95rem;
  color: #ece3c8;
  margin: 0.4rem 0;
}
.chronicle:before,
.chronicle:after {
  content: "";
  height: 1px;
  width: 2.5rem;
  background: var(--gold);
}
.free {
  margin: 0.35rem 0 0;
  letter-spacing: 0.025em;
  line-height: 1.16;
  font-size: clamp(1.6rem, 2.2vw, 2.25rem);
  text-transform: uppercase;
}
.free .icon {
  width: 0.77em;
  height: 0.77em;
  margin: 0 0.35em;
}
.fair {
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbf68d;
  margin: 0.2rem 0 0.85rem;
}
.actions {
  justify-content: center;
  gap: 1rem;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  width: 14rem;
  background: linear-gradient(#15200ef5, #071108f5);
  border: 1px solid #9aaf72;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 750;
  font-size: 0.9rem;
  transition: box-shadow 0.2s;
}
.action:hover {
  box-shadow: 0 0 20px #78f24677;
}
.primary {
  background: linear-gradient(#b1fb73, #6acb39 55%, #75d046);
  border: 1px solid #d5ffc0;
  color: #101a09;
  text-shadow: none;
  box-shadow: 0 0 12px #61e62b65;
}
.stat {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 1.05rem auto 0;
  background: linear-gradient(90deg, #10190de8, #040b06fa, #10190de8);
  border: 1px solid #968966;
  outline: 1px solid #545539;
  outline-offset: -4px;
  padding: 0.55rem 0.8rem;
  max-width: 35rem;
}
.stat:before,
.stat:after,
.panel:before,
.panel:after {
  content: "◆";
  color: #afb181;
  font: 12px Georgia;
  position: absolute;
  top: -7px;
  left: -4px;
}
.stat:after,
.panel:after {
  inset: auto -4px -6px auto;
}
.stat b {
  color: #97b470;
}
.stat small,
.file small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.075em;
}
.stat small {
  text-transform: uppercase;
}
.stat strong {
  font: 700 1.35rem system-ui;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.stat strong#state:before {
  content: "";
  height: 0.55em;
  width: 0.55em;
  background: currentColor;
  border-radius: 100%;
}
.unknown {
  color: #c9cabc;
}
.online {
  color: #91f474;
}
.online:before {
  animation: pulse 2s infinite;
}
.offline {
  color: #ff8585;
}
.mist {
  inset: auto -12% 0;
  width: 124%;
  height: 46%;
  z-index: -2;
  background:
    radial-gradient(ellipse at 29% 60%, #77ce592c, transparent 31%),
    radial-gradient(ellipse at 77% 85%, #71ba503d, transparent 27%);
  filter: blur(8px);
  animation: drift 18s ease-in-out infinite alternate;
}
.embers {
  inset: 8% 12%;
  width: 76%;
  height: 80%;
  background:
    radial-gradient(circle at 8% 85%, #c1ed72 1px, transparent 2px),
    radial-gradient(circle at 23% 60%, #8cba52 1px, transparent 2px),
    radial-gradient(circle at 74% 69%, #d1ff80 1px, transparent 2px),
    radial-gradient(circle at 84% 83%, #d2e998 1px, transparent 2px);
  animation: float 9s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes drift {
  to {
    transform: translate(5%, -10%) scale(1.06);
  }
}
@keyframes float {
  to {
    transform: translate(0.5rem, -2rem);
    opacity: 0.25;
  }
}
@keyframes glow {
  to {
    filter: drop-shadow(0 0 6px #65c94766);
  }
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 8px #7fef62;
  }
}
.panels {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.86fr 1fr 1.08fr;
  gap: 1rem;
  max-width: 112rem;
  padding: 0.4rem 2.5% 1.2rem;
  margin: auto;
}
.panel {
  position: relative;
  min-width: 0;
  padding: 1rem;
  background:
    linear-gradient(135deg, #18211499, transparent 45%),
    linear-gradient(#0f160f, #0a100b);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 3px #0a110b;
}
.panel h2 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #efe9cf;
  text-transform: uppercase;
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 0.8rem;
  padding: 0 0 0.55rem;
  border-bottom: 1px solid #34412e;
}
.intro {
  font-size: 0.87rem;
  margin: 0.5rem 0 1rem;
  color: #d1d6c9;
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.tiles div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.5rem;
  padding: 0.55rem;
  border: 1px solid #394f30;
  background: linear-gradient(135deg, #1d2b16, #0d150d);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 650;
}
.tiles .icon {
  width: 1.55rem;
  height: 1.55rem;
}
dl {
  font-size: 0.8rem;
  margin: 0;
}
dl div {
  display: flex;
  justify-content: space-between;
  gap: 0.45rem;
  border-bottom: 1px solid #263123;
  padding: 0.18rem 0;
}
dl dd {
  margin: 0;
  color: #bbd99e;
  text-align: right;
}
.tabs button {
  flex: 1;
  min-height: 40px;
}
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin-top: 0.7rem;
  font-size: 0.8rem;
}
td,
th {
  text-align: left;
  padding: 0.45rem 0.15rem;
  overflow-wrap: anywhere;
  border-bottom: 1px solid #263123;
}
th {
  color: #aeb6a7;
  font-weight: 500;
}
th:first-child {
  width: 12%;
}
th:last-child {
  width: 20%;
}
td:last-child,
th:last-child {
  text-align: right;
}
tbody tr:nth-child(1) {
  color: #e9cf79;
}
tbody tr:nth-child(2) {
  color: #cfd8df;
}
tbody tr:nth-child(3) {
  color: #d39c76;
}
.empty {
  text-align: center;
  color: #a8b39f;
  font-size: 0.85rem;
  padding: 1.3rem 0.4rem;
}
.empty .icon {
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0.5;
}
.file {
  border: 1px solid #455e37;
  border-radius: 4px;
  padding: 0.75rem;
  background: #111b10;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  overflow-wrap: anywhere;
}
.file a {
  display: inline-block;
  color: var(--lime);
  padding: 0.5rem 0;
}
.file summary {
  cursor: pointer;
}
.file code {
  font-size: 0.72rem;
}
.panel h3 {
  font: 600 0.92rem var(--serif);
  text-transform: uppercase;
  color: #e3ddbd;
}
ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
li {
  counter-increment: step;
  position: relative;
  padding-left: 1.65rem;
  margin: 0.5rem 0;
  font-size: 0.8rem;
}
li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  border: 1px solid #729857;
  border-radius: 50%;
  width: 1.12rem;
  height: 1.12rem;
  font-size: 0.7rem;
  color: var(--lime);
}
footer {
  border-top: 1px solid #34422b;
  padding: 1.2rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #bec6b6;
  font-size: 0.8rem;
  background: radial-gradient(ellipse at bottom, #182c17, transparent 70%);
}
dialog {
  border: 1px solid #829363;
  background: #132012;
  color: #eee;
  max-width: 90%;
  text-align: center;
}
dialog::backdrop {
  background: #0009;
}
#notice {
  text-align: center;
  padding: 0.5rem;
  background: #354023;
}
#apiError {
  background: #10190e;
  padding: 0.15rem 0.4rem;
}
.panel,
#notice {
  overflow-wrap: anywhere;
}
@media (max-width: 1150px) {
  .panels {
    grid-template-columns: 1fr 1fr;
  }
  .bar {
    gap: 0.4rem;
  }
  nav {
    gap: 0.8rem;
  }
}
@media (max-width: 800px) {
  header {
    position: relative;
  }
  .bar {
    flex-wrap: wrap;
    padding: 0.35rem 3%;
  }
  .bar > .brand {
    margin-right: auto;
  }
  .langs button,
  #menub {
    min-height: 44px;
  }
  #menub {
    display: block;
    font-size: 0.85rem;
  }
  .bar nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .bar nav.open {
    display: flex;
  }
  .flag {
    display: none;
  }
}
@media (max-width: 620px) {
  .bar {
    gap: 0.16rem;
  }
  .brand {
    font-size: 1.2rem;
  }
  .langs button {
    padding: 0.25rem 0.4rem;
    min-width: 36px;
  }
  .hero {
    min-height: 0;
    padding: 4.7rem 0.75rem 1.15rem;
  }
  .hero picture {
    height: 65%;
  }
  .hero picture img {
    object-position: center top;
  }
  .hero:after {
    background:
      linear-gradient(180deg, transparent 10%, #080b0820 30%, #080b08 65%),
      radial-gradient(ellipse at center, #06100655, transparent 65%);
  }
  .hero h1 img {
    width: min(66%, 18rem);
  }
  .chronicle {
    font-size: 0.73rem;
    letter-spacing: 0.17em;
  }
  .fair {
    font-size: 0.84rem;
    letter-spacing: 0.05em;
  }
  .free {
    font-size: 1.45rem;
  }
  .actions {
    gap: 0.45rem;
  }
  .action {
    font-size: 0.78rem;
    width: 50%;
    padding: 0.55rem 0.25rem;
  }
  .stat {
    margin-top: 0.8rem;
  }
  .stat strong {
    font-size: 1.1rem;
  }
  .panels {
    grid-template-columns: minmax(0, 1fr);
    padding: 0.35rem 0.85rem 1rem;
    gap: 0.85rem;
  }
  .panel {
    padding: 1rem;
  }
  .tabs button {
    min-height: 44px;
  }
  .tiles div {
    min-height: 3rem;
  }
  .mist {
    animation-duration: 28s;
    filter: none;
  }
  .embers {
    display: none;
  }
  footer {
    flex-direction: column;
    gap: 0.5rem;
  }
  .intro,
  dl,
  table,
  li {
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
.hero {
  overflow: clip;
  grid-template-columns: minmax(0, 1fr);
}
.heroBody {
  min-width: 0;
}
.hero picture img {
  object-position: center 21%;
}
nav .icon {
  color: #afc698;
}
.stat:before,
.stat:after {
  font-size: 1.6rem;
  line-height: 1;
  height: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  left: -0.65rem;
  content: "⟡";
  color: #c1b18a;
  text-shadow: 0 1px 3px #000;
}
.stat:after {
  left: auto;
  right: -0.65rem;
}
@media (min-width: 1151px) {
  .hero h1 img {
    width: min(27rem, 83%);
  }
}
@media (max-width: 620px) {
  .hero picture {
    height: 100%;
  }
  .hero picture img {
    object-fit: contain;
    object-position: center top;
  }
  .hero:after {
    background: linear-gradient(
      180deg,
      transparent 13%,
      #080b0838 26%,
      #080b08 57%
    );
  }
  .hero {
    padding-top: 5.4rem;
  }
  .bar:has(nav.open) nav {
    justify-content: space-evenly;
  }
  .stat {
    max-width: calc(100% - 9px);
  }
}
.mist:before,
.mist:after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/art/mist.webp") center/100% 100% no-repeat;
  opacity: 0.65;
}
.mist:after {
  transform: scaleX(-1);
  animation: curl 13s ease-in-out infinite alternate;
  opacity: 0.32;
}
@keyframes curl {
  to {
    transform: translateY(-8%) scale(-1.07, 0.83);
  }
}
@media (max-width: 620px) {
  .mist:after {
    display: none;
  }
  .mist:before {
    opacity: 0.42;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mist:after {
    animation: none;
  }
}
nav a[aria-current="location"] {
  color: #e6ffd5;
  box-shadow: inset 0 -2px #8ccd55;
}
