:root {
  --purple: #a95ded;
  --purple-dark: #7c3fb8;
  --accent: #e9f76c;
  --text: #21152e;
  --muted: #5c426f;
  --grid-line: rgba(169, 93, 237, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  background-color: #ffffff;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 16px;
  padding-top: 4px;
}

.hero-copy {
  min-width: 260px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--purple-dark);
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 4px;
  font-size: 2.75rem;
}

h2 {
  margin-top: 12px;
  margin-bottom: 0;
  font-size: 2rem;
  text-align: center;
}

h3 {
  margin-bottom: 0;
  font-size: 1.75rem;
}

.hero-copy p {
  margin-bottom: 0;
  color: var(--purple);
  font-size: 1.1rem;
  font-weight: 700;
}

main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.placeholder {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px dashed var(--purple);
  border-radius: 8px;
  background: #ffffff;
  color: var(--purple-dark);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  padding: 8px;
}

.media-frame {
  padding: 0;
  overflow: hidden;
}

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

.logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

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

.screenshot-placeholder {
  width: 400px;
  height: 300px;
  font-size: 1rem;
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
}

.social-row,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-socials {
  justify-self: end;
  margin-left: 48px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--purple);
  border-radius: 50%;
  color: var(--purple);
  background: #ffffff;
  cursor: pointer;
  text-decoration: none;
}

.icon-button-small {
  width: 32px;
  height: 32px;
}

.icon-button i {
  font-size: 19px;
  line-height: 1;
}

.icon-button-small i {
  font-size: 16px;
}

.game-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 2px solid var(--purple);
  border-radius: 8px;
  background: #ffffff;
}

.game-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
}

.badge {
  width: fit-content;
  margin-bottom: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.description-box {
  margin-bottom: 0;
  padding: 12px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
}

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.text-button-filled {
  border: 2px solid var(--accent);
  background: var(--accent);
}

.text-button-outline {
  border: 2px solid var(--accent);
  background: #ffffff;
}

.game-socials {
  margin-top: auto;
}

.team-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 16px;
}

.team-card {
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--purple);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.team-card h3,
.team-card p {
  width: 100%;
  margin-bottom: 0;
}

.team-card h3 {
  min-height: 1.2em;
}

.team-card .role {
  min-height: 1.5em;
}

.role {
  color: var(--purple);
  font-weight: 800;
}

.site-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 2px solid var(--purple);
}

.site-footer p {
  margin-bottom: 0;
  color: var(--purple-dark);
  font-size: 0.92rem;
  text-align: center;
}

.footer-contact {
  margin-top: 4px;
}

.footer-contact a {
  color: var(--purple-dark);
}

@media (max-width: 840px) {
  .game-card {
    flex-direction: column;
    align-items: stretch;
  }

  .screenshot-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .game-content {
    min-height: 0;
  }

  .game-socials {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 12px 12px 20px;
  }

  .hero {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .hero-socials {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
    margin-top: 12px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.55rem;
  }
}
