@font-face {
  font-family: VHS;
  src: url("https://peachyvoid.com/fonts/VT323-Regular.ttf");
}

body {
  background-image: url("https://peachyvoid.com/backgrounds/LCRQAiI.jpeg");
  background-repeat: repeat;
}

.game-archive {
  width: min(950px, 70%);
  margin: 0 auto;
  padding: 40px 0 60px;
}



.game-archive-header {
  text-align: center;
  margin-bottom: 65px;
}

.divider {
  color: #fdfdfd;
  font-size: 20px;
}

.game-archive-header h1 {
  margin: 0;
  font-size: 90px;
  font-weight: normal;
  letter-spacing: 0.04em;
  font-family: VHS;
  color: #fff;
  -webkit-text-stroke: 1px #1a1819;
}

.archive-intro {
  max-width: 700px;
  margin: 15px auto 12px;
  line-height: 1.6;
  font-size: 1.2rem;
  opacity: 0.8;
  font-family: VHS;
  color: #fff;
  background-color: #837157;
  border-radius: 5px;
}






.game-platform {
  margin-bottom: 35px;
  padding: 24px 28px 28px;
  border: 1px solid currentColor;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    5px 5px 0 rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
    position: relative;
    isolation: isolate;
    margin-bottom: 35px;
    padding: 24px 28px 28px;
    border: 15px solid transparent;
    border-image: url("https://peachyvoid.com/backgrounds/borders/87.png") 15 round;
    border-radius: 10px;
    background: #FFF5E4;
    background-clip: padding-box;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    overflow: hidden;
}

.game-platform::before {
    content: "";
    position: absolute;
    z-index: -1;

    inset: -15px;
}


.platform-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid currentColor;
}


.platform-heading h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.platform-symbol {
  font-size: 0.9rem;
  opacity: 0.7;
}

.platform-line {
  height: 1px;
  flex: 1;
  background: currentColor;
  opacity: 0.2;
}



.game-grid {
  display: grid;
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(120px, 1fr)
    );

  gap: 30px 20px;
}




.game-card {
  min-width: 0;
}




.game-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid currentColor;
  box-sizing: border-box;
  box-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.12);
}


.game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}




.game-card:hover .game-cover img {
  transform: scale(1.025);
}

.ds-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid currentColor;
  box-sizing: border-box;
  box-shadow:
    3px 3px 0 rgba(0, 0, 0, 0.12);
}


.ds-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: auto;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}




.game-card:hover .ds-cover img {
  transform: scale(1.025);
}




.game-info {
  padding-top: 11px;
}


.game-info h3 {
  margin: 0;

  font-size: 0.9rem;
  line-height: 1.25;
  font-weight: normal;
}


.game-meta {
  margin-top: 4px;
  font-size: 0.68rem;
  line-height: 1.4;
  opacity: 0.6;
}




.game-rating {
  margin-top: 7px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1;
}


.game-rating.unrated {
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  opacity: 0.45;
}




.game-status {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 6px;
  border: 1px solid currentColor;
  font-size: 0.55rem;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0.7;
}




.game-status.playing {
  opacity: 0.85;
}

.game-status.completed {
  opacity: 0.65;
}

.game-status.ongoing {
  opacity: 0.7;
}

.game-status.incomplete {
  opacity: 0.5;
}




.game-archive-footer {
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid currentColor;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
}


.game-archive-footer a {
  display: inline-block;
  margin-top: 12px;
  letter-spacing: normal;
}




.game-platform {
  position: relative;
}



.platform-normal {
  display: block;
}


.platform-details {
  display: none;
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
}


.game-platform.is-open .platform-normal {
  display: none;
}


.game-platform.is-open .platform-details {
  display: block;
}



.platform-back {
  display: inline-block;
  margin: 0 0 22px 0;
  padding: 5px 9px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0.08em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.platform-back:hover {
  background: currentColor;
  color: #FFF5E4;
}


.platform-detail-header {
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid currentColor;
}

.platform-detail-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.platform-detail-meta {
  margin-top: 6px;
  font-size: 0.7rem;
  opacity: 0.6;
}



.platform-detail-content {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}



.platform-detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid currentColor;
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.12);
}

.platform-detail-cover-ds {
  width: 100%;
  aspect-ratio: 2 / 2;
  overflow: hidden;
  border: 1px solid currentColor;
  box-shadow:
    4px 4px 0 rgba(0, 0, 0, 0.12);
}


.platform-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-detail-cover-ds img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.platform-detail-info {
  min-width: 0;
}

.platform-detail-rating {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.platform-detail-status {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 7px;
  border: 1px solid currentColor;
  font-size: 0.58rem;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0.7;
}



.platform-detail-section {
  margin-top: 22px;
  padding-top: 12px;
  border-top: 1px solid currentColor;
}

.platform-detail-section-title {
  display: block;
  margin-bottom: 7px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.platform-detail-section p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
}

.platform-detail-section p img {
  width: 300px;
  max-width: 100%;
  height: auto;
}

.platform-detail-section p .screenshot-wide-hover img {
  width: 600px !important;
  max-width: none !important;
}



.screenshot-hover {
  position: relative;
  display: inline-block;
  width: 300px;
  max-width: 100%;
}

.screenshot-hover img {
  display: block;
  width: 300px !important;
  max-width: 100%;
  height: auto;
}




.screenshot-wide-hover {
  position: relative;
  display: block;
  width: 600px;
  max-width: none;
  margin-top: 10px;
}

.screenshot-wide-hover img {
  display: block;
  width: 600px !important;
  max-width: none !important;
  height: auto;
}

.screenshot-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.7rem;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.screenshot-hover:hover .screenshot-caption,
.screenshot-wide-hover:hover .screenshot-caption {
  opacity: 1;
}

.back-button {
   color: #b6caa6;
  text-decoration: none;
  font-size: 23px;
  border-radius: 6px;
  transform-origin: top left;         
  transition: transform 0.2s ease;   
  font-family: VHS;
}

.back-button:hover {
  transform: scale(1.2);
    text-shadow:
  0 0 5px #ad8686,
  0 0 10px #685737,
  0 0 15px #bccca2,
  0 0 20px #000000;
}


/* MOBILE */

@media (max-width: 700px) {

  .platform-detail-content {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
  }

  .platform-detail-header h2 {
    font-size: 1.2rem;
  }

  .platform-detail-section p {
    font-size: 0.68rem;
  }

}


@media (max-width: 450px) {

  .platform-detail-content {
    grid-template-columns: 1fr;
  }

  .platform-detail-cover {
    width: 130px;
  }

}

@media (max-width: 700px) {

  .game-archive {
    width: 90%;
    padding-top: 35px;
  }


  .game-archive-header {
    margin-bottom: 45px;
  }


  .game-platform {
    margin-bottom: 55px;
  }


  .game-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    gap: 30px 16px;
  }


  .game-info h3 {
    font-size: 0.82rem;
  }


  .game-meta {
    font-size: 0.62rem;
  }

}




@media (max-width: 360px) {

  .game-grid {
    gap: 25px 12px;
  }

}