:root {
  --bg: #111111;
  --panel: #f0f4df;
  --panel-line: #151515;
  --mint: #79ef76;
  --mint-shadow: #2f8a4c;
  --text: #111111;
  --muted: #3e3e3e;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Trebuchet MS', 'Verdana', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 9%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 87% 36%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
    radial-gradient(circle at 21% 63%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 71%, rgba(255, 255, 255, 0.85) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 94% 81%, rgba(255, 255, 255, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 43% 91%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    #111;
  background-size: 240px 240px, 310px 310px, 270px 270px, 330px 330px, 290px 290px,
    350px 350px, 300px 300px, auto;
}

.page {
  width: min(1380px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.masthead {
  text-align: center;
  margin-bottom: 22px;
}

.title,
.subtitle {
  font-family: 'Setback TT (BRK)', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--mint);
  text-shadow: 4px 4px 0 var(--mint-shadow);
}

.title {
  font-size: clamp(34px, 5.7vw, 78px);
  line-height: 0.94;
  margin: 0;
}

.subtitle {
  font-size: clamp(24px, 3vw, 46px);
  line-height: 0.95;
  margin: 10px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.member-card {
  --mooncat-width: 87px;
  display: grid;
  grid-template-rows: 28px 90px 28px;
  background: var(--panel);
  border: 2px solid var(--panel-line);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.75);
  padding: 4px 6px 4px;
  text-align: center;
  min-height: 146px;
}

.member-card[data-pose='standing'] {
  --mooncat-width: 91px;
}

.member-card[data-pose='pouncing'] {
  --mooncat-width: 74px;
}

.member-top {
  min-height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}

.member-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  word-break: break-word;
}

.member-handle {
  font-size: 10px;
  line-height: 1.05;
  color: var(--muted);
  word-break: break-word;
}

.member-imageFrame {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.member-image {
  width: var(--mooncat-width);
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.member-bottom {
  align-self: end;
  min-height: 28px;
  margin-top: 0;
}

.member-cat {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
}

.member-fav {
  font-size: 10px;
  line-height: 1.05;
  color: var(--muted);
  margin-top: 2px;
}

.member-catName {
  font-size: 10px;
  line-height: 1.05;
  color: var(--muted);
  margin-top: 2px;
  word-break: break-word;
}

.loading,
.error {
  background: rgba(240, 244, 223, 0.95);
  border: 2px solid var(--panel-line);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.75);
  padding: 18px 20px;
  text-align: center;
  font-size: 18px;
}

@media (max-width: 760px) {
  .page {
    width: min(100vw - 18px, 860px);
    padding-top: 14px;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
    gap: 7px;
  }

  .member-card {
    --mooncat-width: 80px;
    grid-template-rows: 34px 90px 28px;
    min-height: 168px;
    padding: 6px 5px 8px;
  }

  .member-card[data-pose='standing'] {
    --mooncat-width: 84px;
  }

  .member-card[data-pose='pouncing'] {
    --mooncat-width: 68px;
  }
}
