@font-face {
  font-family: "Minecraft Rus";
  src: url("assets/MinecraftRus.woff") format("woff");
  font-display: swap;
}
:root {
  color-scheme: dark;
  background: #090b0e;
  color: #FFFFFF;
  font-family: "Minecraft Rus";
}
* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
.scene {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding-bottom: max(clamp(1.5rem, 5vh, 4rem), env(safe-area-inset-bottom));
  font-size: clamp(.8125rem, .957vw, 1.2rem);
}
.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  transform: scaleX(-1);
  background:
    linear-gradient(to bottom, #030407 0%, #030407fa max(6rem, 12%), #06080bc9 22%, #080a0e55 33%, transparent 44%, transparent 76%, #090b0edb),
    radial-gradient(ellipse 69% 88% at 50% 52%, transparent 31%, #07090c30 52%, #06080ccb 83%, #06080efa 100%),
    url("assets/night-spawn.png") center / cover no-repeat;
}
.scene::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse 25% 36% at 11% 50%, #07090ce8 10%, #07090cb3 51%, transparent 100%);
}
header { position: absolute; inset: 1.65em 0 auto; }
nav { display: flex; align-items: center; justify-content: center; gap: 2.05em; padding: 0 3%; }
nav .plate { zoom: .8; }
nav::before, nav::after {
  --diamond: 1.1rem;
  content: ""; width: 17em; height: var(--diamond); flex-shrink: 1;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 1 9 5 5 9 1 5Z' fill='none' stroke='%23bd8839' stroke-width='1.8'/%3E%3C/svg%3E") right center / var(--diamond) var(--diamond) no-repeat,
    linear-gradient(to right, transparent, #bc883f) left center / calc(100% - var(--diamond) + 1px) 2px no-repeat;
}
nav::after { transform: rotate(180deg); }
.plate, dialog {
  --surface: linear-gradient(120deg, #34291e, #211b16);
  border: 2px solid #b37c34;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px #24190f;
}
.plate {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .64em; min-height: 2.7em; padding: .4em .95em;
  flex: none;
  color: inherit; text-decoration: none;
  font-weight: 400; font-size: 1.19em;
  text-shadow: 1px 2px #211c17;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out, filter 150ms ease-out;
}
@media (hover: hover) {
  .plate:hover {
    border-color: #f7d484;
    filter: brightness(1.08);
    box-shadow: inset 0 0 0 1px #24190f, 0 0 16px rgba(245, 198, 100, 0.58), 0 0 32px rgba(223, 173, 87, 0.34);
  }
  .play:hover {
    border-color: #ffe094;
    box-shadow: inset 0 0 0 1px #24190f, 0 0 22px rgba(255, 206, 102, 0.68), 0 0 42px rgba(234, 184, 96, 0.42);
  }
}
.plate:active { transform: translateY(1px) scale(.98); transition-duration: 70ms; }
@media (prefers-reduced-motion: reduce) {
  .plate, .plate:hover, .plate:active { transition: none; transform: none; }
}
:where(a,button,input):focus-visible { outline: 2px solid #ffe3a3; outline-offset: 4px; }
.plate img { width: 1.6em; height: 1.6em; flex: none; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(1px 2px 0 #14110db3); }
.privileges img { transform: scale(1.35); }
.intro, .join-block {
  margin-left: 6.25vw; width: fit-content; max-width: 87.5vw;
  text-shadow: 1px 2px 3px #07090c;
  transform: translateY(clamp(-1.5rem, -2.5vh, -.75rem));
}
.intro { padding-block: 8em; }
.eyebrow { font-size: 1.15em; font-weight: 600; letter-spacing: .14em; }
h1 { margin: .22em 0 .24em; font-size: 3.75em; line-height: 1.12; font-weight: bold; }
.chill { color: #64d96c; }
.craft { color: #ffa148; }
.description { max-width: 26em; font-size: 1.15em; line-height: 1.55; color: #ADADAD; }
.status { display: flex; align-items: center; gap: .62em; margin-bottom: .8em; font-size: 1.22em; }
.status::before { content: ""; width: .65em; height: .65em; background: #968875; border-radius: 50%; }
.status[data-online="true"]::before { background: #22bf57; }
.actions { position: relative; display: flex; gap: 1.25em; }
.actions .plate { min-height: 2.85em; }
.play, .privileges { --surface: linear-gradient(115deg, #674b23, #49341b); }
.play { padding-inline: 1.25em; border-color: #dfad57; }
.help { width: 3em; padding: 0; }
.game-version { margin-top: .8em; color: #adadad; font-size: max(.95em, .8125rem); line-height: 1.5; }
.help svg { display: block; width: 1.55em; height: 1.55em; }
#server-info { width: 26rem; }
.domain-list { display: grid; gap: var(--menu-gap); margin: 0; padding: 0; list-style: none; }
.domain-copy { width: 100%; justify-content: space-between; min-height: 2.8rem; text-align: left; font-size: 1rem; overflow-wrap: anywhere; user-select: text; }
.domain-copy span { min-width: 0; }
.domain-copy i { position: relative; width: .7rem; height: .8rem; flex: none; margin-right: .2rem; border: 2px solid #ba9b6d; }
.domain-copy i::after { content: ""; position: absolute; inset: .12rem -.34rem -.34rem .12rem; border: 2px solid #ba9b6d; background: #30261c; }
#domain-feedback { color: #bcbcbc; font-size: .875rem; }
.community { display: grid; gap: var(--menu-gap); border-top: 1px solid #59482f; padding-top: var(--menu-gap); }
.discord-name { color: #91cfff; }
.discord-link { justify-content: flex-start; overflow-wrap: anywhere; }
dialog {
  --menu-gap: .75rem;
  --surface: linear-gradient(135deg, #25211e, #191919);
  max-width: min(26rem, calc(100% - 2rem)); padding: clamp(1rem, 4vw, 1.5rem);
  color: inherit; box-shadow: inset 0 0 0 1px #24190f, 0 1rem 4rem #0009; font-size: 1.125rem;
}
dialog[open] { display: grid; gap: var(--menu-gap); }
dialog::backdrop { background: #05070bb8; }
dialog h2 { font-size: 1.45rem; }
dialog p { line-height: 1.45; }
dialog .plate { font-size: 1rem; min-height: 2.8rem; }
dialog input { width: 100%; padding: .6rem .85rem; border: 1px solid #817052; color: inherit; background: #111317; }
#connection:not([hidden]) { display: grid; justify-items: start; gap: var(--menu-gap); }
#copy-status:empty, #domain-feedback:empty { display: none; }
@media (max-width: 46rem) {
  .scene { font-size: 1rem; }
  .scene::after { background-position: center, center, 57% center; }
  .scene::before { background: linear-gradient(to right, #07090ce3, #07090c9c 63%, transparent); }
  header { inset-block-start: 1rem; }
  nav { width: 80%; margin-inline: auto; gap: .28rem; display: grid; grid-template-columns: 1fr 1.25fr 1fr; padding: 0 .4rem; }
  nav::before, nav::after { display: none; }
  nav .plate { font-size: clamp(.85rem, 2.7vw, 1.06rem); min-height: 5.5rem; flex-direction: column; gap: .35rem; padding: .4rem .15rem; text-align: center; }
  .plate img { width: 1.6rem; height: 1.6rem; }
  .intro, .join-block { margin-left: 6vw; max-width: 88vw; }
  .intro { padding-block: 9rem 2rem; }
  h1 { font-size: clamp(2.35rem, 9vw, 3.75rem); }
  .eyebrow { font-size: .95rem; }
  .description { font-size: 1.12rem; max-width: 23rem; }
  .status { font-size: 1rem; }
  .actions .plate { font-size: 1rem; }
}
