@font-face {
  font-family: "Monocraft";
  src: url("/assets/Monocraft.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --white: #fff;
  --ink: #18151d;
  --pink: #ff9fc4;
  --pink-light: #ffd1e1;
  --green: #80db6d;
  --panel: rgba(23, 18, 29, 0.86);
  --pixel-shadow: 3px 3px 0 #17131b;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  isolation: isolate;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: #17131b;
  font-family: "Monocraft", ui-monospace, monospace;
  image-rendering: pixelated;
}

.world-video,
.world-shade {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.world-video {
  z-index: -2;
  object-fit: cover;
  image-rendering: auto;
}

.world-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 8, 15, 0.82) 0%, rgba(11, 8, 15, 0.44) 52%, rgba(11, 8, 15, 0.72) 100%),
    linear-gradient(0deg, rgba(9, 7, 12, 0.92) 0%, transparent 38%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
}

.topbar {
  width: min(1380px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid rgba(255,255,255,.34);
  text-shadow: var(--pixel-shadow);
}

.wordmark {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
}

.flower {
  position: relative;
  width: 30px;
  height: 30px;
  background:
    linear-gradient(#ffb4d0 0 0) 0 8px/30px 14px,
    linear-gradient(#ffb4d0 0 0) 8px 0/14px 30px;
  background-repeat: no-repeat;
  filter: drop-shadow(3px 3px 0 #5a2e4a);
}

.flower i {
  position: absolute;
  inset: 10px;
  background: #fff4b0;
}

.topbar p {
  margin: 0;
  color: #e7e1e9;
  font-size: .76rem;
  letter-spacing: .08em;
}

.online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  background: var(--green);
  box-shadow: 2px 2px 0 #285b2b;
}

main {
  width: min(1380px, calc(100% - 56px));
  min-height: calc(100vh - 182px);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 105px) 0 132px;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(280px, 360px);
  justify-content: space-between;
  align-items: center;
  gap: 70px;
}

.hero { text-shadow: var(--pixel-shadow); container-type: inline-size; }

.kicker {
  margin: 0 0 20px;
  color: var(--pink-light);
  font-size: .78rem;
  letter-spacing: .17em;
}

h1 {
  margin: 0;
  font-size: min(7.25rem, 14cqi);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.085em;
  text-transform: uppercase;
}

h1 span {
  white-space: nowrap;
  color: var(--pink);
  text-shadow: 4px 4px 0 #63364f, 8px 8px 0 rgba(20,12,22,.62);
}

.hero-copy {
  max-width: 650px;
  margin: 29px 0 30px;
  color: #f2edf2;
  font-size: clamp(.8rem, 1.5vw, 1rem);
  line-height: 1.72;
}

.server-list {
  position: relative;
  min-height: 104px;
  padding: 14px 48px 14px 14px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 16px;
  background: rgba(12, 10, 15, .88);
  border: 3px solid #8a858c;
  box-shadow: inset -3px -3px 0 #2d2a31, inset 3px 3px 0 #fff, 5px 5px 0 rgba(0,0,0,.58);
  text-shadow: 2px 2px 0 #000;
}

.server-list::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255,255,255,.09);
  pointer-events: none;
}

.server-icon {
  position: relative;
  width: 76px;
  height: 76px;
  background:
    linear-gradient(135deg, transparent 48%, #c1edff 49% 57%, transparent 58%),
    linear-gradient(#88d9ef 0 52%, #64a45a 52% 63%, #724c30 63%);
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.26);
  overflow: hidden;
}

.petal, .petal-center { position: absolute; display: block; }
.petal { width: 13px; height: 13px; background: #ff9fc4; }
.p1 { left: 14px; top: 14px; }
.p2 { left: 31px; top: 9px; }
.p3 { left: 22px; top: 28px; }
.p4 { left: 46px; top: 22px; }
.petal-center { left: 29px; top: 20px; width: 8px; height: 8px; background: #fff2a8; }

.server-copy { min-width: 0; display: grid; gap: 5px; }
.server-copy strong { font-size: 1rem; font-weight: 400; }
.server-copy span { color: #aaa4ad; font-size: .68rem; }
.server-copy code { color: #6fff68; font: inherit; font-size: .78rem; }

.signal {
  height: 32px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.signal i { width: 5px; background: #70e261; box-shadow: 1px 1px 0 #1e6527; }
.signal i:nth-child(1) { height: 7px; }
.signal i:nth-child(2) { height: 12px; }
.signal i:nth-child(3) { height: 18px; }
.signal i:nth-child(4) { height: 24px; }
.signal i:nth-child(5) { height: 30px; }

.join-help {
  margin: 17px 0 0;
  color: #cbc4cc;
  font-size: .64rem;
  line-height: 1.65;
}
.join-help code { color: #fff394; font: inherit; }

.field-guide {
  transform: rotate(1.1deg);
  color: #2d2620;
  background: #d8bc8a;
  border: 5px solid #49392b;
  box-shadow: inset 0 0 0 3px #f1dcad, 10px 14px 0 rgba(0,0,0,.45);
  text-shadow: none;
}

.guide-title {
  height: 52px;
  padding: 0 18px;
  color: #efe9dc;
  background: #6d402d;
  border-bottom: 4px solid #3d281e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
}
.guide-title i { width: 13px; height: 13px; background: #ef94bc; box-shadow: 8px -6px 0 #f7bad1; }
.guide-body { padding: 18px; }

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 11px 0;
  border-top: 2px dashed rgba(58,47,34,.3);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
}

.steps li:first-child { border-top: 0; padding-top: 2px; }
.step-number {
  width: 24px;
  height: 24px;
  color: #f8ead0;
  background: #7b3150;
  display: grid;
  place-items: center;
  font-size: .58rem;
  box-shadow: 2px 2px 0 #402433;
}
.steps strong { display: block; margin: 3px 0 6px; font-size: .63rem; font-weight: 400; }
.steps p { margin: 4px 0 0; font-size: .54rem; line-height: 1.45; }
.steps code {
  display: block;
  overflow-wrap: anywhere;
  color: #742a4b;
  font: inherit;
  font-size: .54rem;
  line-height: 1.5;
}
.steps b { color: #742a4b; font-weight: 400; }
.password-note {
  margin: 9px 0 0;
  padding-top: 12px;
  border-top: 3px solid rgba(58,47,34,.35);
  color: #742a4b;
  font-size: .54rem;
  line-height: 1.45;
}

.hotbar {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hotbar a,
.hotbar button {
  width: 92px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  text-decoration: none;
  text-shadow: 2px 2px #111;
  cursor: pointer;
  text-align: center;
}

.slot {
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(24,21,29,.88);
  border: 4px solid #18151c;
  outline: 3px solid #8b858d;
  box-shadow: inset 3px 3px 0 #4a454e, 4px 4px 0 rgba(0,0,0,.45);
  font-size: 1.6rem;
}
.ip-slot { font-size: .88rem; color: #111; background: #f2e6c4; }
.backup-slot { color: #ffb4cf; }
.hotbar em { font-style: normal; font-size: .55rem; }
.hotbar a:hover .slot, .hotbar button:hover .slot, .hotbar a:focus-visible .slot, .hotbar button:focus-visible .slot { outline-color: #fff; color: #ffff91; }

.video-credit {
  position: fixed;
  right: 22px;
  bottom: 18px;
  color: rgba(255,255,255,.58);
  font-size: .48rem;
  text-shadow: 1px 1px #000;
}

#video-toggle { position: fixed; left: 18px; bottom: 18px; z-index: 6; border: 2px solid #aaa; padding: 10px; color: white; background: #242028; font: inherit; font-size: .6rem; cursor: pointer; }

@media (max-width: 980px) {
  .topbar, main { width: min(700px, calc(100% - 34px)); }
  main { grid-template-columns: 1fr; padding-top: 54px; }
  .field-guide { width: min(420px, 100%); justify-self: center; transform: none; }
  .video-credit { display: none; }
}

@media (max-width: 580px) {
  .topbar { min-height: 66px; }
  .topbar p { display: none; }
  main { min-height: auto; padding: 45px 0 142px; }
  .hero-copy { font-size: .75rem; }
  .server-list { grid-template-columns: 56px 1fr; padding-right: 13px; }
  .server-icon { width: 56px; height: 56px; }
  .signal { display: none; }
  .server-copy span { display: none; }
  .server-copy .server-endpoint { display: block; line-height: 1.6; overflow-wrap: anywhere; }
  .server-copy code { font-size: .63rem; }
  .join-help { font-size: .58rem; }
  .hotbar { bottom: 17px; gap: 3px; }
  .hotbar a, .hotbar button { width: 78px; }
  .slot { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .world-video { display: none; }
  body { background: #33223b url("/assets/video/sakura-lake.jpg") center/cover fixed; }
}
