@import url("https://fonts.googleapis.com/css2?family=Bitcount+Grid+Double&family=Chakra+Petch:wght@400;600;700&display=swap");

:root {
  --pink: #fc0390;
  --metal: #999999;
  --ink-0: #06060d;
  --ink-1: #12121d;
  --text-main: #f3f3f3;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--ink-1);
  color: var(--text-main);
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  padding: 1rem 0.9rem 1.4rem;
}

.deck-shell {
  width: min(72rem, 100%);
  margin-inline: auto;
}

.deck-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.return-btn {
  justify-self: start;
  border: 1px solid rgba(153, 153, 153, 0.7);
  background: rgba(25, 27, 40, 0.94);
  color: #f8f8f8;
  text-decoration: none;
  border-radius: 0.45rem;
  padding: 0.52rem 0.92rem;
  font: 700 0.95rem/1 "Chakra Petch", sans-serif;
  letter-spacing: 0.02rem;
  box-shadow: 0 0 0 1px rgba(252, 3, 144, 0.3);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.return-btn:hover,
.return-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px rgba(252, 3, 144, 0.42), 0 0 16px rgba(252, 3, 144, 0.24);
}

h1 {
  margin: 0;
  text-align: center;
  font-family: "Bitcount Grid Double", "Chakra Petch", sans-serif;
  letter-spacing: 0.03rem;
  font-size: clamp(1.5rem, 8vw, 2.7rem);
  text-shadow: 0 0 10px rgba(252, 3, 144, 0.5);
}

.bio-table-wrap {
  border: 1px solid rgba(153, 153, 153, 0.58);
  background: rgba(20, 22, 34, 0.92);
  padding: 0.38rem;
  margin-bottom: 1rem;
}

.bio-table {
  width: 100%;
  border-collapse: collapse;
}

.bio-table th,
.bio-table td {
  border: 1px solid rgba(153, 153, 153, 0.45);
  text-align: center;
  padding: 0.52rem 0.38rem;
}

.bio-table th {
  color: #ffffff;
  font-family: "Bitcount Grid Double", "Chakra Petch", sans-serif;
  font-size: 0.92rem;
  background: rgba(252, 3, 144, 0.2);
}

.bio-table td {
  color: #dfdfdf;
  background: rgba(153, 153, 153, 0.08);
}

.bio-table--column th,
.bio-table--column td {
  text-align: left;
  padding: 0.6rem 0.7rem;
}

.bio-table--column th {
  width: 34%;
  white-space: nowrap;
}

.blueprint-board {
  position: relative;
  border: 1px solid rgba(153, 153, 153, 0.62);
  background-color: #ffffff;
  background-image: url("../img/drafting-paper.svg");
  background-repeat: repeat;
  background-size: 240px 240px;
  padding: 0.9rem;
  overflow: hidden;
}

.blueprint-board::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 2px;
  background: rgba(57, 3, 252, 0.92);
  box-shadow: 0 0 10px rgba(57, 3, 252, 0.6);
  animation: board-scan 4.5s linear infinite;
  pointer-events: none;
}

.schematic-image {
  position: relative;
  display: block;
  width: min(46rem, 100%);
  margin-inline: auto;

}

@keyframes board-scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.95;
  }
  85% {
    opacity: 0.86;
  }
  100% {
    transform: translateY(740px);
    opacity: 0;
  }
}

@media (min-width: 780px) {
  body {
    padding: 1.5rem 1.2rem 2rem;
  }

  .deck-header {
    margin-bottom: 1.1rem;
  }

  .bio-table th,
  .bio-table td {
    padding: 0.62rem 0.5rem;
  }

  .blueprint-board {
    padding: 1.2rem;
  }
}
