@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

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

:root {
  --black: #050505;
  --dark: #0b0b0b;
  --gray: #181818;
  --gray2: #292929;
  --silver: #777;
  --light: #aaa;
  --white: #f2f2f2;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: "Space Mono", monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, #ffffff08, transparent 30%),
    radial-gradient(circle at 80% 80%, #ffffff05, transparent 30%);
  z-index: -2;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 99;
  background-image:
    repeating-linear-gradient(
      0deg,
      #fff 0px,
      #fff 1px,
      transparent 1px,
      transparent 3px
    );
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;

  height: 72px;
  padding: 0 5vw;

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

  background: #090909b8;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border-bottom: 1px solid #ffffff14;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
}

.logo-mark {
  width: 34px;
  height: 34px;

  display: grid;
  place-items: center;

  border: 1px solid #777;
  background: #111;

  font-size: 16px;
}

nav {
  display: flex;
  gap: 8px;
}

nav button,
.filter {
  border: 1px solid #ffffff18;
  background: #11111199;
  color: #888;

  padding: 10px 14px;

  font-family: inherit;
  font-size: 9px;
  letter-spacing: 1.5px;

  cursor: pointer;

  backdrop-filter: blur(10px);
  transition: .2s;
}

nav button:hover,
nav button.active,
.filter:hover,
.filter.active {
  color: white;
  border-color: #777;
  background: #202020cc;
}

#libraryCount {
  margin-left: 5px;
  color: #aaa;
}

main {
  width: 100%;
}

.gallery {
  width: min(1400px, 90%);
  margin: auto;
  padding: 65px 0 100px;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 35px;
}

.eyebrow {
  color: #666;
  font-size: 9px;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(38px, 7vw, 88px);
  line-height: .9;
  letter-spacing: -5px;
}

h1 span {
  color: #666;
}

.status {
  color: #777;
  font-size: 9px;
  letter-spacing: 2px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #aaa;
  box-shadow: 0 0 10px #aaa;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 30px;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.wallpaper-card {
  border: 1px solid #ffffff12;
  background: #0c0c0cd9;
  backdrop-filter: blur(15px);
  transition: .25s;
}

.wallpaper-card:hover {
  border-color: #777;
  transform: translateY(-3px);
}

.wallpaper {
  height: 360px;
  position: relative;
  overflow: hidden;
  background: #111;
}

.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    #fff008 4px
  );
}


/* RED SUNSET */

.red-sunset {
  background:
    linear-gradient(180deg, #111 0%, #333 45%, #888 100%);
}

.sun {
  position: absolute;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: #aaa;
  left: 50%;
  top: 35%;
  transform: translate(-50%, -50%);
  filter: blur(1px);
}

.mountain {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 55%;
  background: #090909;
  clip-path: polygon(
    0 80%, 15% 50%, 28% 70%, 43% 30%,
    60% 65%, 75% 38%, 100% 75%, 100% 100%, 0 100%
  );
}

.mountain-two {
  opacity: .65;
  transform: scaleX(1.15);
}


/* VOID RUNNER */

.void-runner {
  background: linear-gradient(#080808, #252525);
}

.moon {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #aaa;
  top: 45px;
  right: 80px;
  box-shadow: 0 0 50px #aaa5;
}

.grid-floor {
  position: absolute;
  left: -20%;
  bottom: -20%;
  width: 140%;
  height: 65%;
  transform: perspective(300px) rotateX(55deg);

  background:
    linear-gradient(#ffffff15 1px, transparent 1px),
    linear-gradient(90deg, #ffffff15 1px, transparent 1px);

  background-size: 35px 35px;
}

.runner {
  position: absolute;
  width: 16px;
  height: 100px;
  left: 50%;
  bottom: 85px;
  background: #aaa;
  box-shadow:
    0 0 30px #aaa,
    0 0 60px #aaa5;
}


/* NIGHT CITY */

.night-city {
  background: linear-gradient(#050505, #202020);
}

.city {
  position: absolute;
  bottom: 0;
  background: #090909;
  border: 1px solid #555;
}

.city-one {
  left: 5%;
  width: 22%;
  height: 55%;
}

.city-two {
  left: 30%;
  width: 30%;
  height: 75%;
}

.city-three {
  right: 3%;
  width: 28%;
  height: 48%;
}

.rain {
  position: absolute;
  inset: 0;
  opacity: .25;
  background: repeating-linear-gradient(
    105deg,
    transparent 0 14px,
    #aaa 15px,
    transparent 16px 30px
  );
}


/* NUCK VOID */

.nuck-void {
  background: radial-gradient(circle, #303030, #050505 70%);
}

.orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid #777;
  border-radius: 50%;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 80px #7775;
}

.character {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}

.head {
  width: 42px;
  height: 42px;
  border: 2px solid #aaa;
  border-radius: 50%;
  margin: auto;
}

.body {
  width: 55px;
  height: 90px;
  margin-top: 5px;
  background: #777;
  clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
}

.arm {
  position: absolute;
  width: 10px;
  height: 70px;
  background: #aaa;
  top: 50px;
}

.arm.left {
  left: -20px;
  transform: rotate(18deg);
}

.arm.right {
  right: -20px;
  transform: rotate(-18deg);
}


/* STATIC DREAM */

.static-dream {
  background: #111;
}

.circle {
  position: absolute;
  width: 230px;
  height: 230px;
  border: 1px solid #888;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.bars {
  position: absolute;
  width: 70%;
  height: 2px;
  background: #aaa;
  left: 15%;
  top: 50%;
  box-shadow:
    0 -35px #555,
    0 35px #777,
    0 -70px #333,
    0 70px #333;
}

.static {
  position: absolute;
  inset: 0;
  opacity: .12;
  background:
    repeating-linear-gradient(
      90deg,
      #fff 0 1px,
      transparent 1px 6px
    );
}


/* SILVER CITY */

.silver-city {
  background: linear-gradient(#222, #050505);
}

.tower {
  position: absolute;
  bottom: 0;
  background: linear-gradient(90deg, #333, #aaa, #222);
  border: 1px solid #777;
}

.tower-one {
  left: 5%;
  width: 18%;
  height: 55%;
}

.tower-two {
  left: 27%;
  width: 20%;
  height: 78%;
}

.tower-three {
  left: 52%;
  width: 17%;
  height: 62%;
}

.tower-four {
  right: 4%;
  width: 21%;
  height: 48%;
}

.fog {
  position: absolute;
  inset: 50% 0 0;
  background: linear-gradient(transparent, #aaa2);
  filter: blur(15px);
}


.card-info {
  min-height: 100px;
  padding: 17px;

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

  border-top: 1px solid #ffffff12;
}

.card-number {
  color: #555;
  font-size: 8px;
}

.card-info h2 {
  font-size: 13px;
  margin: 5px 0;
  letter-spacing: 1px;
}

.card-info p {
  color: #555;
  font-size: 8px;
  letter-spacing: 2px;
}

.card-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.add,
.download {
  height: 38px;
  border: 1px solid #555;
  background: #111;
  color: #aaa;
  font-family: inherit;
  cursor: pointer;
  transition: .2s;
}

.add {
  width: 38px;
  font-size: 20px;
}

.download {
  padding: 0 11px;
  font-size: 8px;
  letter-spacing: 1px;
}

.add:hover,
.download:hover {
  color: white;
  background: #2a2a2a;
  border-color: #aaa;
}


/* OVERLAYS */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;

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

  background: #0009;
  backdrop-filter: blur(12px);
}

.overlay.show {
  display: flex;
}

.panel {
  position: relative;

  width: min(550px, 90%);
  max-height: 80vh;
  overflow-y: auto;

  padding: 35px;

  background: #0d0d0de8;
  border: 1px solid #ffffff25;

  box-shadow: 0 30px 100px #000;

  backdrop-filter: blur(25px);
}

.panel h2 {
  font-size: 38px;
  letter-spacing: -2px;
  margin-bottom: 30px;
}

.close {
  position: absolute;
  right: 20px;
  top: 17px;

  border: 0;
  background: transparent;
  color: #777;

  font-size: 28px;
  cursor: pointer;
}

.close:hover {
  color: white;
}

.library-item {
  padding: 15px;
  margin-bottom: 8px;

  display: flex;
  justify-content: space-between;

  border: 1px solid #ffffff12;
  background: #111;
}

.library-item span {
  color: #777;
  font-size: 9px;
}

.library-empty {
  color: #555;
  font-size: 10px;
  padding: 30px 0;
}

.account-box {
  display: flex;
  justify-content: space-between;

  padding: 18px;
  margin-bottom: 8px;

  border: 1px solid #ffffff12;
  background: #111;
}

.account-box span {
  color: #555;
  font-size: 8px;
}

.account-box strong {
  font-size: 10px;
  color: #aaa;
}


/* MOBILE */

@media (max-width: 800px) {

  .topbar {
    padding: 0 20px;
  }

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

  nav button {
    padding: 9px;
    font-size: 8px;
  }

  .gallery {
    width: 92%;
    padding-top: 40px;
  }

  .gallery-head {
    align-items: start;
    gap: 20px;
  }

  .status {
    margin-top: 8px;
  }

  .wallpaper-grid {
    grid-template-columns: 1fr;
  }

  .wallpaper {
    height: 300px;
  }

  .card-info {
    align-items: flex-end;
  }

  .download {
    padding: 0 8px;
  }
}

.wallpaper {
  position: relative;
  width: 100%;
  height: 360px;
  overflow: hidden;
  background: #080808;
}

.wallpaper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wallpaper-card {
  overflow: hidden;
}


/* Hide wallpaper names */
.card-info h2,
.card-info p {
  display: none;
}

/* Keep the number hidden too */
.card-number {
  display: none;
}

