* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-xl: clamp(2.5rem, 1rem + 2vw, 4.85rem);

  --font-lg: clamp(1.2rem, 0.8rem + 0.8vw, 2rem);

  --font-md: clamp(0.8rem, 0.6rem + 0.35vw, 1.3rem);

  --font-sm: clamp(0.75rem, 0.5rem + 0.35vw, 1rem);

  --gutter: 2rem;
  --g1x: 100%;
  --g1y: 0%;
  --g2x: 85%;
  --g2y: 100%;
  --g3x: 80%;
  --g3y: -10%;
  cursor: default;
}

.pixel-text {
  font-family: "Pixelify Sans", serif;
  font-weight: 100;
}

html {
  height: 100%;
}

svg[height='0'][aria-hidden='true'] { position: fixed }

body {
  font-family: "Space Mono", monospace;
  font-size: var(--font-sm);
  color: black;
  padding: var(--gutter);
  background: whitesmoke;
  width: 100%;
  height: 100%;
  display: grid;
  gap: var(--gutter);
  grid-template-columns: 1fr 3fr;
  grid-template-rows: auto 1fr;
}

.icons {
  display: flex;
  gap: calc(var(--gutter) / 2);
  justify-content: flex-end;
  margin-top: calc(var(--gutter) / 4);
  align-items: center;
}

.icons img {
  height: clamp(1.5rem, 1rem + 0.8vw, 3rem);
}

.badge {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}

.badge img {
  height: clamp(1rem, 1rem + 0.4vw, 3rem);
}

.name {
  font-family: 'EB Garamond', serif;
  font-size: var(--font-xl);
  font-weight: 300;
  color: lightgray;
}

h1 {
  font-family: 'EB Garamond', serif;
  font-size: var(--font-xl);
  font-weight: 600;
}

h2 {
  font-family: 'EB Garamond', serif;
  font-size: var(--font-xl);
  font-weight: 300;
}

h3 {
  font-family: 'EB Garamond', serif;
  font-size: var(--font-lg);
  font-weight: 300;
  display: block;
}

.game {
  font-size: var(--font-xl);
}

.content {
  grid-column-start: 2;
  grid-row-start: 2;
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  background:
    radial-gradient(
      circle at var(--g1x) var(--g1y),
      rgba(0, 206, 209, 0.55) 0%,
      transparent 75%
    ),
    radial-gradient(
      circle at var(--g2x) var(--g2y),
      rgba(138, 43, 226, 0.55) 0%,
      transparent 85%
    ),
    radial-gradient(
      circle at var(--g3x) var(--g3y),
      rgba(255, 69, 0, 0.55) 0%,
      transparent 85%
    ),
    black
    ;

  position: relative;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scroll-padding-top: var(--gutter);
  border-radius: 10px;
}

.frame {
  display: flex;
  gap: var(--gutter);
  height: 100%;
  border-radius: 10px;
  border: calc(var(--gutter) / 4) solid lightgray;
  background-color: lightgray;
  align-content: center;
}

.frame-media {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  border-top: calc(var(--gutter) / 8) solid gray;
  border-left: calc(var(--gutter) / 8) solid gray;
  border-right: calc(var(--gutter) / 6) solid gainsboro;
  border-bottom: calc(var(--gutter) / 6) solid gainsboro;
}

.frame-media img,
.frame-media iframe {
  border-radius: 0px;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.open {
  display: flex;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}

.modal-content > img {
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: fill;
}

.frame-media img
{
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
}

.frame-media img:hover
{
  transform: scale(1.05);
  cursor: pointer;
}

.sleeve {
  margin: var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
	gap: var(--gutter);
  height: fit-content;
}

.page {
  margin: var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
	gap: var(--gutter);
  height: calc(100% - (var(--gutter) * 2));
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.card {
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0);
  color: white;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.08);
  padding: calc(var(--gutter) / 2);
  image-rendering: pixelated;
}

.card.clickable {
  background: rgba(255, 255, 255, 0.075);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card.clickable:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.02);
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(0, 0, 0, 0),
    inset 2px 6px 40px rgba(255, 255, 255, 0.12);
}

.card ul {
  list-style-type: disc;
  margin-left: var(--gutter);
}

.image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 5px solid white;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.info {
  color: black;
}

ul {
  list-style-type: none;
}

header {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 1;
}

nav {
  display: flex;
  flex-direction: column;
  font-size: var(--font-sm);
  grid-row-start: 2;
  justify-content: space-between;
}

.links {
  display: flex;
  text-decoration: underline;
  flex-direction: row;
  justify-content: space-between;
}

.links a:hover {
  cursor: pointer;
  background-color: black;
  color: white;
}

nav ul {
  font-size: var(--font-md);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

nav ul li {
  padding: 0.5rem;
  text-align: left;
  color: black;
}

nav ul li.head {
  border-bottom: solid black 2px;
  border-top: solid black 2px;
}

nav ul li.clicked {
  background-color: lightgray;
}

nav ul li:hover {
  color: white;
  background-color: black;
  cursor: pointer;
}

hr {
  color: white;
  margin: 0.5rem 0rem;
}

.spacer {
  height: var(--gutter);
  flex-shrink: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 1919px) {
  :root {
  --gutter: 0.8rem;
  }
}

@media (max-width: 1367px) {
  h1,h2 {
    display: inline;
  }

  .name {
    color: black;
  }

  .card p {
    line-height: 1.1;
    letter-spacing: -0.01em
  }

  .card ul {
    line-height: 1.1;
    letter-spacing: -0.01em
  }
}

@media (max-width: 768px) {
  body {
    grid-template-columns: 1fr;
    grid-template-rows: 1 1;
    gap: 0px;
  }

  header {
    line-height: 1;
    padding-bottom: var(--gutter);
  }

  nav {
    display: none;
  }

  .content {
    scroll-snap-type: none;
    grid-column-start: 1;
    grid-row-start: 2;
  }

  .page {
    display: block;
    height: auto;
    margin: 0;
  }

  .card {
    margin: calc(var(--gutter) / 2);
  }

  .frame {
    margin: calc(var(--gutter) / 2);
  }

  nav ul {
    display: none;
  }
}