@font-face {
  font-family: "x14y20pxScoreDozer";
  src: url("x14y20pxScoreDozer.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #001b39;
  --foreground: #e0e0e0;
  --muted: rgba(224, 224, 224, 0.68);
  --panel: rgba(224, 224, 224, 0.08);
  --panel-strong: rgba(224, 224, 224, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: "x14y20pxScoreDozer", "Segoe UI", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: clamp(34px, 6vh, 62px);
  padding: clamp(34px, 7vh, 72px) clamp(20px, 5vw, 72px) clamp(36px, 8vh, 84px);
}

.profile {
  width: min(680px, 100%);
  justify-self: center;
  transform: translateX(-7%);
  display: grid;
  grid-template-columns: clamp(104px, 16vw, 168px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 4vw, 36px);
}

.profile-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.profile-text {
  padding-top: clamp(8px, 2vw, 18px);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.9;
  font-weight: 750;
  letter-spacing: 0;
}

.social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--foreground);
  border-radius: 8px;
  background: transparent;
  transition: background-color 160ms ease, transform 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  background: var(--panel);
  transform: translateY(-2px);
  outline: none;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-image {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}

.games {
  width: min(760px, 100%);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.game-card {
  display: grid;
  gap: 12px;
  color: var(--foreground);
  outline: none;
}

.game-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.game-card:hover .game-media,
.game-card:focus-visible .game-media {
  transform: translateY(-5px);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.42);
}

.game-still,
.game-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-preview {
  opacity: 0;
  transition: opacity 160ms ease;
}

.game-card:hover .game-preview,
.game-card:focus-visible .game-preview {
  opacity: 1;
}

.game-info {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.game-title {
  color: var(--muted);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-platform {
  color: var(--foreground);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.9;
  text-transform: lowercase;
}

@media (max-width: 700px) {
  .page {
    gap: 40px;
  }

  .profile {
    transform: none;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .games {
    grid-template-columns: 1fr;
    align-self: start;
  }
}

@media (max-width: 420px) {
  .profile {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
  }

  h1 {
    font-size: 42px;
  }

  .social-link {
    width: 34px;
    height: 34px;
  }

  .game-info {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .game-title {
    font-size: 22px;
  }

  .game-platform {
    font-size: 20px;
  }
}
