:root {
  --cream: #f9e495;
  --pink: #f60355;
  --ink: #111111;
  --enter: 1.05s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  background: var(--cream);
  color: var(--ink);
  font-family: "Press Start 2P", ui-monospace, monospace;
}

.page-home {
  overflow: hidden;
}

.page-news,
.page-members {
  overflow-x: hidden;
  overflow-y: auto;
}

img {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  user-select: none;
  -webkit-user-drag: none;
}

.scan {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(0, 0, 0, 0.03) 3px 4px
  );
}

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 12px;
}

.topnav a {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  border: 4px solid var(--ink);
  background: var(--cream);
  image-rendering: pixelated;
}

.topnav a:hover,
.topnav a:focus-visible {
  background: var(--pink);
  color: #fff;
  outline: none;
}

.topnav a[aria-current="page"] {
  background: var(--ink);
  color: var(--cream);
}

.stage {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 10vh, 96px) 16px 28px;
  cursor: pointer;
  gap: clamp(10px, 2vh, 22px);
}

.stage:focus {
  outline: none;
}

.scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(920px, 100%);
}

.brand {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 6px;
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo,
.news-logo img {
  display: block;
  width: clamp(220px, 42vw, 360px);
  height: auto;
}

.page-home .logo {
  opacity: 0;
}

.pop-heart {
  display: block;
  width: clamp(36px, 5.5vh, 52px);
  height: auto;
  margin-top: 8px;
  opacity: 0;
  transform: scale(0);
  transform-origin: center bottom;
  position: relative;
  z-index: 4;
}

.meet {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(780px, 100%);
  min-height: 0;
  z-index: 1;
  gap: 8px;
}

.actor {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.char {
  display: block;
  width: clamp(72px, 11vw, 108px);
  height: auto;
}

.guy-wrap {
  margin-right: -4px;
  transform: translateX(-16vw);
}

.girl-wrap {
  margin-left: -4px;
  transform: translateX(16vw);
}

.sparkles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
}

.sparkles img {
  position: absolute;
  left: 50%;
  top: -28px;
  width: 16px;
  opacity: 0;
}

.hint {
  margin: 10px 0 0;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.45);
  opacity: 0;
}

.market-btn {
  position: relative;
  z-index: 9;
  display: inline-block;
  margin-top: 8px;
  padding: 12px 18px;
  border: 4px solid var(--ink);
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

.market-btn:hover,
.market-btn:focus-visible {
  background: var(--ink);
  color: var(--cream);
  outline: none;
}

.play .logo {
  animation: fade-in 0.4s steps(4, end) 0.12s forwards;
}

.play .guy-wrap {
  animation: stroll-in-left var(--enter) steps(8, end) forwards;
}

.play .girl-wrap {
  animation: stroll-in-right var(--enter) steps(8, end) forwards;
}

.play .char {
  animation: walk-bob 0.28s steps(2, end) infinite;
}

.play.met .char {
  animation: none;
}

.play .pop-heart {
  animation: heart-pop 0.45s cubic-bezier(0.2, 1.4, 0.35, 1) 1s forwards,
    heart-pulse 1.15s steps(2, end) 1.45s infinite;
}

.play .hint {
  animation: fade-in 0.4s steps(4, end) 1.35s forwards;
}

.play .market-btn {
  animation: fade-in 0.35s steps(4, end) 1.15s forwards;
}

.play.met .market-btn {
  pointer-events: auto;
}

.play .sparkles img:nth-child(1) {
  animation: spark 1.6s steps(6, end) 1.1s 2;
}

.play .sparkles img:nth-child(2) {
  animation: spark 1.7s steps(6, end) 1.2s 2;
}

.play .sparkles img:nth-child(3) {
  animation: spark 1.5s steps(6, end) 1.3s 2;
}

@keyframes stroll-in-left {
  from {
    transform: translateX(-16vw);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes stroll-in-right {
  from {
    transform: translateX(16vw);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes walk-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes heart-pop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.18);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heart-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spark {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.4);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx, -50%), -90px) scale(0.7);
  }
}

.sparkles img:nth-child(1) {
  --sx: -90px;
}

.sparkles img:nth-child(2) {
  --sx: 10px;
  top: -40px;
}

.sparkles img:nth-child(3) {
  --sx: 80px;
}

.news {
  position: relative;
  z-index: 9;
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 20px 64px;
}

.news-logo {
  width: fit-content;
  margin: 0 auto 28px;
}

.news-logo img {
  width: min(260px, 80vw);
}

.news h1 {
  font-size: 16px;
  letter-spacing: 0.2em;
  text-align: center;
  margin: 0 0 32px;
}

.members {
  position: relative;
  z-index: 9;
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 20px 64px;
}

.members h1 {
  font-size: 16px;
  letter-spacing: 0.2em;
  text-align: center;
  margin: 0 0 12px;
}

.members-intro {
  margin: 0 0 28px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.55);
}

.members-list {
  list-style: none;
  margin: 0 auto;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 132px);
  justify-content: center;
  gap: 28px 36px;
  width: 100%;
}

.member {
  width: 132px;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.member-pfp {
  width: 132px;
  height: 132px;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  border: 4px solid var(--ink);
  background: var(--cream);
}

.member-pfp--placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--cream) 0 6px,
    rgba(17, 17, 17, 0.06) 6px 12px
  );
}

.member-body {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.member-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.member-name {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.member-x {
  flex-shrink: 0;
  display: flex;
  width: 14px;
  height: 14px;
  color: var(--ink);
}

.member-x:hover,
.member-x:focus-visible {
  color: var(--pink);
  outline: none;
}

.member-x svg {
  display: block;
  width: 100%;
  height: 100%;
}

.member-role {
  margin-top: 6px;
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}


.stories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story {
  border: 4px solid var(--ink);
  padding: 22px 20px 20px;
  background: var(--cream);
}

.story time {
  display: block;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--pink);
  margin-bottom: 12px;
}

.story h2 {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.story p {
  font-size: 10px;
  line-height: 1.9;
  margin: 0 0 14px;
}

.story p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .members-list {
    grid-template-columns: repeat(2, minmax(0, 148px));
    gap: 22px 18px;
  }
}

@media (max-width: 640px) {
  .topnav a {
    font-size: 8px;
    padding: 8px 10px;
  }

  .logo,
  .news-logo img {
    width: min(240px, 78vw);
  }

  .pop-heart {
    width: 38px;
  }

  .char {
    width: min(84px, 24vw);
  }

  .meet {
    gap: 4px;
  }

  .hint {
    font-size: 7px;
  }

  .market-btn {
    font-size: 8px;
    padding: 10px 14px;
  }

  .news h1,
  .members h1 {
    font-size: 14px;
  }

  .members-list {
    grid-template-columns: repeat(2, minmax(0, 148px));
    gap: 22px 18px;
  }

  .member {
    width: 100%;
  }

  .member-pfp {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play .guy-wrap,
  .play .girl-wrap,
  .play .char,
  .play .pop-heart,
  .play .logo,
  .play .hint,
  .play .market-btn,
  .play .sparkles img {
    animation: none;
  }

  .guy-wrap,
  .girl-wrap {
    transform: none;
  }

  .pop-heart,
  .logo,
  .hint,
  .market-btn {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
