/*
 * SOMC
 * Global Styles
 * Rose Pine
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --base: #191724;
  --surface: #1f1d2e;
  --overlay: #26233a;

  --muted: #6e6a86;
  --text: #e0def4;

  --love: #eb6f92;
  --gold: #f6c177;
  --pine: #31748f;
  --foam: #9ccfd8;
  --iris: #c4a7e7;
}

html {
  width: 100%;
  min-height: 100%;
}

body {
  width: 100%;
  min-height: 100vh;

  background: var(--base);
  color: var(--text);

  font-family: "Courier New", monospace;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--love);
  color: var(--base);
}
/*
 * SOMC
 * Global Navigation
 */

/* =========================================
   NAVIGATION
========================================= */

.nav {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 5%;

  border-bottom:
    1px solid
    rgba(224, 222, 244, 0.06);

  background:
    linear-gradient(
      to bottom,
      rgba(25, 23, 36, 0.35),
      transparent
    );
}


/* =========================================
   BRAND
========================================= */

.nav-brand {
  color: var(--text);

  font-family:
    Impact,
    "Arial Black",
    sans-serif;

  font-size: 26px;

  line-height: 1;

  letter-spacing: -0.04em;

  text-decoration: none;
}

.nav-brand span {
  color: var(--love);
}


/* =========================================
   LINKS
========================================= */

.nav-links {
  display: flex;
  align-items: center;

  gap: 32px;
}

.nav-links a {
  position: relative;

  color: var(--muted);

  font-size: 10px;
  font-weight: bold;

  letter-spacing: 0.12em;

  text-decoration: none;
  text-transform: uppercase;

  transition:
    color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}


/* =========================================
   LINK INDICATOR
========================================= */

.nav-links a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -8px;

  width: 0;
  height: 1px;

  background: var(--love);

  box-shadow:
    0 0 8px
    rgba(235, 111, 146, 0.45);

  transition:
    width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--text);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

  .nav {
    height: 70px;

    padding:
      0 6%;
  }

  .nav-brand {
    font-size: 23px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links a {
    font-size: 9px;

    letter-spacing: 0.08em;
  }

}
/*
 * SOMC
 * Server / Landing Page
 * Rose Pine
 */

/* =========================================
   SERVER PAGE
========================================= */

.server-page {
  width: 100%;
  height: 100vh;

  overflow: hidden;
}

.screen {
  position: relative;

  width: 100%;
  height: 100vh;

  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 72% 42%,
      rgba(49, 116, 143, 0.18),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 80% 70%,
      rgba(235, 111, 146, 0.09),
      transparent 30%
    ),
    var(--base);
}


/* =========================================
   VIGNETTE
========================================= */

.screen::before {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 50;

  pointer-events: none;

  background:
    radial-gradient(
      ellipse at center,
      transparent 35%,
      rgba(5, 4, 9, 0.65) 100%
    );
}


/* =========================================
   CRT TEXTURE
========================================= */

.screen::after {
  content: "";

  position: absolute;

  inset: 0;

  z-index: 60;

  pointer-events: none;

  opacity: 0.12;

  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 3px,
      rgba(224, 222, 244, 0.035) 4px
    );

  mix-blend-mode: screen;
}


/* =========================================
   MOON
========================================= */

.moon {
  position: absolute;

  top: 9%;
  right: 13%;

  width: 150px;
  height: 150px;

  border-radius: 50%;

  background: var(--text);

  box-shadow:
    0 0 25px
    rgba(224, 222, 244, 0.18),

    0 0 90px
    rgba(196, 167, 231, 0.08);

  opacity: 0.82;
}

.moon::before,
.moon::after {
  content: "";

  position: absolute;

  border-radius: 50%;

  background: #b8b3d0;

  opacity: 0.22;
}

.moon::before {
  width: 30px;
  height: 30px;

  left: 32px;
  top: 28px;
}

.moon::after {
  width: 19px;
  height: 19px;

  right: 28px;
  bottom: 30px;
}


/* =========================================
   TERRAIN
========================================= */

.terrain {
  position: absolute;

  bottom: 0;
  left: 0;

  width: 100%;
  height: 42%;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(7, 5, 11, 0.75)
    );
}

.mountain {
  position: absolute;

  bottom: 0;

  width: 0;
  height: 0;

  border-left:
    260px solid transparent;

  border-right:
    260px solid transparent;

  border-bottom:
    320px solid #100e18;
}

.mountain.one {
  left: -130px;
}

.mountain.two {
  left: 20%;

  transform:
    scale(1.25);
}

.mountain.three {
  right: 4%;

  transform:
    scale(1.45);
}


/* =========================================
   HORIZON
========================================= */

.horizon {
  position: absolute;

  left: 0;
  bottom: 31%;

  width: 100%;
  height: 1px;

  background: var(--pine);

  box-shadow:
    0 0 15px
    rgba(49, 116, 143, 0.8),

    0 0 50px
    rgba(49, 116, 143, 0.25);

  opacity: 0.65;
}


/* =========================================
   GROUND
========================================= */

.ground {
  position: absolute;

  bottom: 0;
  left: 0;

  width: 100%;
  height: 9%;

  background:
    repeating-linear-gradient(
      90deg,
      #15121d 0px,
      #15121d 48px,
      #110f17 48px,
      #110f17 96px
    );

  border-top:
    2px solid
    rgba(49, 116, 143, 0.35);

  box-shadow:
    inset 0 10px 0
    rgba(49, 116, 143, 0.05);
}


/* =========================================
   PARTICLES
========================================= */

.particle {
  position: absolute;

  width: 3px;
  height: 3px;

  background: var(--love);

  box-shadow:
    0 0 8px var(--love);

  opacity: 0;

  animation:
    particle 5s infinite linear;
}

.p1 {
  left: 48%;
  bottom: 20%;

  animation-delay: 0s;
}

.p2 {
  left: 61%;
  bottom: 13%;

  animation-delay: 1.8s;
}

.p3 {
  left: 76%;
  bottom: 18%;

  animation-delay: 3s;
}

@keyframes particle {

  0% {
    transform: translateY(0);

    opacity: 0;
  }

  20% {
    opacity: 0.8;
  }

  100% {
    transform:
      translateY(-130px);

    opacity: 0;
  }

}


/* =========================================
   MAIN CONTENT
========================================= */

.content {
  position: relative;

  z-index: 10;

  width: min(1150px, 90%);
  height: 100%;

  margin: auto;

  display: flex;

  flex-direction: column;

  justify-content: center;
}


/* =========================================
   SERVER LABEL
========================================= */

.server-label {
  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 24px;

  color: var(--love);

  font-size: 11px;
  font-weight: bold;

  letter-spacing: 0.22em;

  text-transform: uppercase;
}

.server-label::before {
  content: "";

  width: 32px;
  height: 1px;

  background: var(--love);

  box-shadow:
    0 0 8px
    rgba(235, 111, 146, 0.8);
}


/* =========================================
   TITLE
========================================= */

.screen h1 {
  max-width: 850px;

  color: var(--text);

  font-family:
    Impact,
    "Arial Black",
    sans-serif;

  font-size:
    clamp(4rem, 11vw, 9rem);

  line-height: 0.8;

  letter-spacing: -0.045em;

  text-transform: uppercase;

  text-shadow:
    4px 4px 0
    rgba(0, 0, 0, 0.35);
}

.screen h1 span {
  display: block;

  color: var(--love);

  text-shadow:
    4px 4px 0 #321722,

    0 0 30px
    rgba(235, 111, 146, 0.12);
}


/* =========================================
   DESCRIPTION
========================================= */

.description {
  max-width: 510px;

  margin-top: 32px;

  color: var(--muted);

  font-size: 13px;

  line-height: 1.8;

  border-left:
    2px solid
    var(--pine);

  padding-left: 16px;
}

.description strong {
  color: var(--text);
}


/* =========================================
   ACTIONS
========================================= */

.actions {
  display: flex;

  align-items: center;

  gap: 22px;

  margin-top: 32px;
}

.primary {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  height: 46px;

  padding: 0 28px;

  background: var(--love);
  color: var(--base);

  border:
    1px solid
    var(--love);

  font-size: 11px;
  font-weight: bold;

  letter-spacing: 0.12em;

  text-decoration: none;

  text-transform: uppercase;

  transition:
    0.2s ease;
}

.primary:hover {
  background: transparent;

  color: var(--love);

  box-shadow:
    0 0 20px
    rgba(235, 111, 146, 0.15);
}

.secondary {
  color: var(--muted);

  font-size: 11px;
  font-weight: bold;

  letter-spacing: 0.1em;

  text-decoration: none;

  text-transform: uppercase;

  transition:
    0.2s ease;
}

.secondary:hover {
  color: var(--text);
}


/* =========================================
   SERVER PANEL
========================================= */

.server-panel {
  position: absolute;

  right: 5%;
  bottom: 17%;

  z-index: 20;

  width: 220px;

  background:
    rgba(31, 29, 46, 0.65);

  border:
    1px solid
    rgba(224, 222, 244, 0.08);

  backdrop-filter:
    blur(8px);
}

.panel-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 12px 15px;

  border-bottom:
    1px solid
    rgba(224, 222, 244, 0.08);

  color: var(--muted);

  font-size: 9px;
  font-weight: bold;

  letter-spacing: 0.15em;

  text-transform: uppercase;
}

.online {
  color: var(--foam);
}

.panel-body {
  padding: 15px;
}

.stat {
  display: flex;

  justify-content: space-between;

  padding: 7px 0;

  font-size: 10px;
}

.stat span:first-child {
  color: var(--muted);
}

.stat span:last-child {
  color: var(--text);
}

.danger {
  color: var(--love) !important;
}


/* =========================================
   COORDINATES
========================================= */

.coordinates {
  position: absolute;

  right: 5%;
  top: 7%;

  z-index: 20;

  color: var(--muted);

  font-size: 9px;

  letter-spacing: 0.1em;
}

.coordinates span {
  color: var(--pine);
}


/* =========================================
   HUD
========================================= */

.hud {
  position: absolute;

  left: 5%;
  right: 5%;
  bottom: 22px;

  z-index: 30;

  display: flex;

  justify-content: space-between;
  align-items: center;

  color: var(--muted);

  font-size: 9px;
  font-weight: bold;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

.hud-left {
  display: flex;

  align-items: center;

  gap: 8px;
}

.hud-dot {
  width: 5px;
  height: 5px;

  background: var(--pine);

  box-shadow:
    0 0 8px var(--pine);
}


/* =========================================
   SERVER MOBILE
========================================= */

@media (max-width: 750px) {

  .moon {
    width: 90px;
    height: 90px;

    right: 7%;
    top: 8%;
  }

  .server-panel,
  .coordinates {
    display: none;
  }

  .content {
    justify-content: center;
  }

  .screen h1 {
    font-size:
      clamp(3.7rem, 18vw, 6rem);
  }

  .description {
    max-width: 390px;

    font-size: 12px;
  }

  .hud span:last-child {
    display: none;
  }

  .ground {
    height: 7%;
  }

}
