/*
 * 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);
}

/* =========================================
   COPY BOX
========================================= */
#server-link {
    text-decoration: none;
    cursor: pointer;
    color: #e0def4;
}

#server-link .copy-icon {
    display: inline-block;
    margin-left: 3px;
    font-weight: bold;
    color: #eb6f92;
}

#server-link .copy-icon {
    color: #9ccfd8;
}


/* =========================================
   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;

}
/* =========================================
   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: 7%;

  background:
      #110f17;

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

}


/* =========================================
   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: 20%;

  z-index: 20;

  width: 330px;

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

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

  backdrop-filter:
    blur(8px);


  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.server-panel:hover {
  border-color:
    rgba(196, 167, 231, 0.18);

  background:
    rgba(31, 29, 46, 0.86);
}

.panel-header {
  display: flex;

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

  min-height: 52px;

  padding: 0 20px;

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

  color: var(--muted);

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

  letter-spacing: 0.16em;

  text-transform: uppercase;
}

.panel-header .online {
  color: var(--foam);

  text-shadow:
    0 0 10px
    rgba(156, 207, 216, 0.35);
}

.panel-header .offline {
  color: var(--love);

  text-shadow:
    0 0 10px
    rgba(235, 111, 146, 0.35);
}


.panel-body {
  padding: 14px 20px 18px;
}

.stat {
  display: flex;

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

  min-height: 48px;

  padding: 0 0;

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

  font-size: 11px;
}

.stat:last-child {
  border-bottom: none;
}

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

  font-size: 10px;

  font-weight: bold;

  letter-spacing: 0.12em;

  text-transform: uppercase;
}

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

  font-size: 15px;

  font-weight: bold;

  letter-spacing: 0.02em;

  text-align: right;

  font-variant-numeric:
    tabular-nums;
}

/* =========================================
   DIFFICULTY
========================================= */

.stat .difficulty {
  color: var(--love);

  text-shadow:
    0 0 12px
    rgba(235, 111, 146, 0.20);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .server-panel {
    right: 4%;

    width: 300px;
  }

}


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

/* =========================================
   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) {
  .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%;
  }

}
