/* Puffmon desktop rail: preserve the original system, one scale step larger. */
@media (min-width: 64rem) {
  #root > div > aside {
    width: 20rem;
    padding: 2.5rem 2rem;
  }

  #root > div > aside .inline-flex.items-center {
    gap: 1rem;
  }

  #root > div > aside .inline-flex.items-center > svg {
    width: 2.375rem;
    height: 2.375rem;
  }

  #root > div > aside .inline-flex.items-center > span {
    font-size: 1.45rem !important;
  }

  #root > div > aside > div > p {
    margin-top: 0.75rem;
    font-size: 0.75rem;
  }

  #root > div > aside nav {
    margin-top: 3rem;
  }

  #root > div > aside nav > :not(:last-child) {
    margin-bottom: 0.75rem;
  }

  #root > div > aside nav a {
    gap: 1rem;
    padding: 0.625rem 1rem;
    font-size: 1.125rem;
    line-height: 1.375rem;
  }

  #root > div > aside nav a > span {
    font-size: 1rem;
    line-height: 1.125rem;
  }

  #root > div > aside > p:last-child {
    font-size: 0.6875rem;
  }

  /* Use the supplied green Puffmon wordmark only in the sidebar masthead. */
  #root > div > aside > div:first-child > .inline-flex.items-center {
    position: relative;
    display: block;
    width: 100%;
    max-width: 16rem;
    height: 4rem;
    background-color: transparent;
    background-image: url("/assets/puffmon-sidebar-wordmark-mint.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 116% auto;
    background-blend-mode: normal;
  }

  #root > div > aside > div:first-child > .inline-flex.items-center > svg {
    display: none;
  }

  #root > div > aside > div:first-child > .inline-flex.items-center > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* Use the full Wisp sprite as the recurring section signature. */
.section-wisp-mark {
  width: 3rem;
  height: 3rem;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0.82;
}

/* 01 / BRAND STORY: lead with the product-system premise and center the copy column. */
#story > .grid.gap-12 > .space-y-6 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#story > .grid.gap-12 > .space-y-6 > p {
  margin-block: 0;
}

#story > .grid.gap-12 > .space-y-6 > p:first-child {
  order: 2;
}

#story > .grid.gap-12 > .space-y-6 > p:last-child {
  order: 1;
}

@media (min-width: 48rem) {
  #story > .grid.gap-12 > .space-y-6 {
    align-self: center;
  }
}

/* 07 / GRAPHICS: composite the isolated smoke footage over the card. */
.rising-vapor-panel {
  isolation: isolate;
}

.rising-vapor-panel > p {
  position: relative;
  z-index: 1;
}

.rising-vapor-visual {
  position: absolute;
  inset: auto 0 0;
  display: block;
  width: 100%;
  height: 88%;
  mix-blend-mode: screen;
  pointer-events: none;
}

.rising-vapor-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

/* 07 / ICON SYSTEM: one optical box, stroke weight and baseline for every glyph. */
#graphic .puffmon-icon-grid {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--border);
}

#graphic .puffmon-icon-tile {
  min-width: 0;
  min-height: 7rem;
  gap: 0.75rem;
  padding: 1.125rem 0.75rem;
}

#graphic .puffmon-icon-glyph {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  overflow: visible;
  object-fit: contain;
}

#graphic .puffmon-icon-label {
  color: var(--muted-foreground);
  font-family: "Noto Sans SC", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1rem;
  letter-spacing: 0.08em;
}

@media (max-width: 47.99rem) {
  #graphic .puffmon-icon-tile {
    min-height: 6.25rem;
    padding-inline: 0.5rem;
  }
}

/* Keep the closing signature while removing the deliverables copy block. */
#deliver {
  padding-top: 0;
  border-top: 0;
}

#deliver > :not(:last-child) {
  display: none;
}

#deliver > :last-child {
  margin-top: 0;
}

/* 02 / DIGITAL PET IP: four cinematic character proposals. */
#direction > p.mb-10 {
  /* Use the full content width so the proposal reads as one line on wide screens. */
  max-width: none;
}

#direction .character-proposal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

#direction .character-proposal-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--card) 72%, transparent), transparent 42%),
    var(--background);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

#direction .character-proposal-card:nth-child(1) {
  --character-hover-image: url("/assets/character-hover-wisp.jpg");
}

#direction .character-proposal-card:nth-child(2) {
  --character-hover-image: url("/assets/character-hover-luna.jpg");
}

#direction .character-proposal-card:nth-child(3) {
  --character-hover-image: url("/assets/character-aurel-hover-flight-final.jpg?v=20261117-aurel-hover-flight-final");
}

#direction .character-proposal-card:nth-child(4) {
  --character-hover-image: url("/assets/character-hover-nami.jpg");
}

#direction .character-proposal-card:hover {
  border-color: color-mix(in oklab, var(--mint) 72%, transparent);
  box-shadow: 0 1.25rem 3.5rem -2.25rem color-mix(in oklab, var(--mint) 36%, transparent);
  transform: translateY(-0.25rem);
}

#direction .character-card-kicker {
  padding: 1.5rem 1.5rem 0;
  color: var(--mint);
  font-family: "Silkscreen", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

#direction .character-portrait {
  position: relative;
  aspect-ratio: 3 / 2;
  margin-top: 1.25rem;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: #000;
}

#direction .character-portrait::before,
#direction .character-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

#direction .character-portrait::before {
  z-index: 1;
  background-image: var(--character-hover-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 260ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

#direction .character-portrait::after {
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 58%, color-mix(in oklab, var(--background) 56%, transparent)),
    linear-gradient(90deg, color-mix(in oklab, var(--mint) 7%, transparent), transparent 30%);
}

#direction .character-portrait-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transition:
    opacity 220ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

#direction .character-proposal-card:hover .character-portrait-image {
  transform: scale(1.035);
}

@media (hover: hover) and (pointer: fine) {
  #direction .character-proposal-card:hover .character-portrait::before {
    opacity: 1;
    transform: scale(1.035);
  }

  #direction .character-proposal-card:hover .character-portrait-image {
    opacity: 0;
    transform: scale(1.015);
  }
}

#direction .character-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

#direction .character-role {
  color: var(--mint);
  font-family: "Silkscreen", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

#direction .character-name {
  margin-top: 0.75rem;
  color: var(--bone);
  font-family: "Unbounded", "Noto Sans SC", sans-serif;
  font-size: clamp(1.05rem, 1.45vw, 1.35rem);
  font-weight: 800;
  line-height: 1.25;
}

#direction .character-description {
  margin-top: 0.875rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.75;
}

@media (min-width: 48rem) {
  #direction .character-proposal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 90rem) {
  #direction .character-proposal-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  #direction .character-proposal-card,
  #direction .character-portrait::before,
  #direction .character-portrait-image {
    transition: none;
  }

  #direction .character-proposal-card:hover,
  #direction .character-proposal-card:hover .character-portrait::before,
  #direction .character-proposal-card:hover .character-portrait-image {
    transform: none;
  }
}

/* 02.1 / GROWTH STAGES */
#direction .pet-growth {
  container-type: inline-size;
  margin-top: clamp(3.5rem, 6vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--border);
  scroll-margin-top: 2rem;
}

.pet-growth .growth-eyebrow {
  color: var(--primary);
  font-size: 0.75rem;
}

.pet-growth #pet-growth-title {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.2;
}

.pet-growth .growth-intro {
  margin-top: 0.75rem;
  color: var(--muted-foreground);
}

.pet-growth .growth-pets {
  display: grid;
  gap: clamp(1.75rem, 3vw, 3rem);
  margin-top: clamp(1.75rem, 3vw, 3rem);
}

.pet-growth .growth-pet {
  --pet-accent: var(--mint);
  min-width: 0;
}

.pet-growth .growth-pet--luna { --pet-accent: #f4a4bc; }
.pet-growth .growth-pet--aurel { --pet-accent: #f2ca74; }
.pet-growth .growth-pet--nami { --pet-accent: #8dbaff; }

.pet-growth .growth-pet-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.875rem;
  margin-bottom: 0.9rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--pet-accent);
}

.pet-growth .growth-pet-name {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
}

.pet-growth .growth-pet-name span {
  color: var(--pet-accent);
}

.pet-growth .growth-pet-species {
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

.pet-growth .growth-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.3vw, 1.25rem);
}

.pet-growth .growth-stage {
  --growth-image-scale: 1;
  --growth-image-y: 0%;
  --card-hover-accent: var(--pet-accent);
  position: relative;
  isolation: isolate;
}

.pixel-character {
  --card-hover-accent: var(--pixel-accent, var(--mint));
}

.pet-growth .growth-stage,
.pixel-character {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  transition:
    border-color 220ms cubic-bezier(0.25, 1, 0.5, 1),
    box-shadow 220ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

.pet-growth .growth-stage::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid color-mix(in oklab, var(--pet-accent) 55%, transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition:
    opacity 220ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 280ms cubic-bezier(0.25, 1, 0.5, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pet-growth .growth-stage:hover,
  .pixel-character:hover {
    border-color: color-mix(in oklab, var(--card-hover-accent) 72%, transparent);
    box-shadow:
      0 1.5rem 3.75rem -2.2rem color-mix(in oklab, var(--card-hover-accent) 42%, transparent),
      0 0 0 1px color-mix(in oklab, var(--card-hover-accent) 8%, transparent);
    transform: translateY(-0.35rem);
  }

  .pet-growth .growth-stage:hover {
    --growth-image-scale: 1.055;
    --growth-image-y: -1%;
  }

  .pet-growth .growth-stage:hover::after {
    opacity: 0.7;
    transform: scale(1);
  }

  .pet-growth .growth-stage:hover .growth-stage-visual::before {
    opacity: 0.26;
    transform: translate3d(12%, -5%, 0) scale(1.08);
  }

  .pet-growth .growth-stage:hover .growth-stage-visual::after {
    opacity: 0.13;
    transform: translate3d(650%, 0, 0) rotate(16deg);
  }

  .pet-growth .growth-stage:hover .growth-stage-title {
    color: var(--bone);
  }

  .pet-growth .growth-stage:hover .growth-stage-level {
    color: color-mix(in oklab, var(--pet-accent) 88%, white);
  }
}

.pet-growth .growth-stage-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #000;
}

.pet-growth .growth-stage-visual::before,
.pet-growth .growth-stage-visual::after {
  position: absolute;
  z-index: 2;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.pet-growth .growth-stage-visual::before {
  inset: -32%;
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--pet-accent) 24%, transparent) 0,
    color-mix(in oklab, var(--pet-accent) 8%, transparent) 28%,
    transparent 62%
  );
  transform: translate3d(-20%, 15%, 0) scale(0.86);
  transition:
    opacity 260ms cubic-bezier(0.25, 1, 0.5, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pet-growth .growth-stage-visual::after {
  top: -42%;
  left: -34%;
  width: 22%;
  height: 184%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in oklab, var(--pet-accent) 46%, transparent),
    transparent
  );
  transform: translate3d(-120%, 0, 0) rotate(16deg);
  transition:
    opacity 140ms ease-out,
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pet-growth .growth-stage-visual img {
  --growth-image-flip: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate3d(0, var(--growth-image-y), 0) scaleX(var(--growth-image-flip)) scale(var(--growth-image-scale));
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pet-growth .mirror-pet img {
  --growth-image-flip: -1;
}

/* Match the image-fill crop on Figma layer 2:44. */
.pet-growth .crop-wisp img {
  position: absolute;
  max-width: none;
  width: 184.62%;
  height: 184.84%;
  left: -42.31%;
  top: -42.42%;
  object-fit: fill;
}

.pet-growth .growth-stage-copy {
  padding: clamp(0.625rem, 1.25vw, 1rem);
  border-top: 1px solid var(--border);
  transition: border-color 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

.pet-growth .growth-stage-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
}

.pet-growth .growth-stage-index,
.pet-growth .growth-stage-level {
  color: var(--pet-accent);
  font-size: 0.6875rem;
}

.pet-growth .growth-stage-level {
  margin-inline-start: auto;
  white-space: nowrap;
  transition: color 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

.pet-growth .growth-stage-title {
  font-size: 1rem;
  font-weight: 700;
  transition: color 220ms cubic-bezier(0.25, 1, 0.5, 1);
}

.pet-growth .growth-stage-caption {
  margin-top: 0.35rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  line-height: 1.65;
}

@container (min-width: 40rem) {
  .pet-growth .growth-stage-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pet-growth .growth-stage,
  .pet-growth .growth-stage::after,
  .pet-growth .growth-stage-visual::before,
  .pet-growth .growth-stage-visual::after,
  .pet-growth .growth-stage-visual img,
  .pet-growth .growth-stage-title,
  .pet-growth .growth-stage-level,
  .pixel-character {
    transition: none;
  }

  .pet-growth .growth-stage:hover {
    --growth-image-scale: 1;
    --growth-image-y: 0%;
  }

  .pet-growth .growth-stage:hover,
  .pixel-character:hover {
    transform: none;
  }

  .pet-growth .growth-stage:hover::after,
  .pet-growth .growth-stage:hover .growth-stage-visual::before,
  .pet-growth .growth-stage:hover .growth-stage-visual::after {
    opacity: 0;
    transform: none;
  }
}

/* 03 / PIXEL IP SYSTEM: transparent WISP sprites and restrained idle motion. */
#ip > .mb-14 > svg {
  display: none;
}

#ip > .mb-14::after {
  width: 3rem;
  height: 3rem;
  flex: none;
  content: "";
  background-image: url("/assets/pixel-wisp-happy.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#ip .pixel-wisp-hero {
  width: min(100%, 30rem);
  height: auto;
  object-fit: contain;
  transform-origin: 50% 72%;
  animation: wisp-idle-float 3.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
}

/* Balance the desktop WISP portrait with a full-height character dossier. */
#ip .wisp-profile-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

#ip .wisp-profile-wordmark {
  display: block;
  width: clamp(8rem, 10vw, 11rem);
  max-width: 100%;
  height: auto;
}

@media (min-width: 75rem) {
  #ip > .grid.gap-12 {
    align-items: stretch;
  }

  #ip > .grid.gap-12 > .space-y-6 {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    background:
      linear-gradient(145deg, color-mix(in oklab, var(--mint) 5%, transparent), transparent 38%),
      var(--background);
  }

  #ip > .grid.gap-12 > .space-y-6 > * {
    margin-block: 0;
  }

  #ip > .grid.gap-12 > .space-y-6 > .wisp-profile-intro {
    min-height: clamp(9.5rem, 12vw, 12.5rem);
    flex: none;
    justify-content: space-between;
    padding: clamp(1.5rem, 2.4vw, 2.5rem);
    border-bottom: 1px solid var(--border);
  }

  #ip .wisp-profile-intro > p {
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    line-height: 1.8;
  }

  #ip > .grid.gap-12 > .space-y-6 > dl {
    display: grid;
    min-height: 0;
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 1px;
  }

  #ip > .grid.gap-12 > .space-y-6 > dl > div {
    display: flex;
    min-width: 0;
    min-height: clamp(7rem, 9vw, 10rem);
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.25rem, 2vw, 2rem);
  }

  #ip > .grid.gap-12 > .space-y-6 dt {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }

  #ip > .grid.gap-12 > .space-y-6 dd {
    max-width: 24rem;
    margin-top: 1rem;
    font-size: clamp(0.875rem, 1vw, 1rem);
    line-height: 1.55;
  }

  #ip > .grid.gap-12 > .space-y-6 > dl > div:nth-child(4) {
    background: color-mix(in oklab, var(--mint) 5%, var(--background));
  }

  #ip > .grid.gap-12 > .space-y-6 > dl > div:nth-child(4) dd {
    color: var(--mint);
  }
}

#ip .pixel-wisp-expression-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(7rem, 1fr));
  gap: 1px;
  padding: 1px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--border);
  background: var(--border);
}

#ip .pixel-wisp-expression-card {
  min-width: 0;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 2rem) clamp(0.75rem, 1.5vw, 1.25rem) 1.25rem;
  background: var(--background);
  text-align: center;
}

#ip .pixel-wisp-expression-image {
  display: block;
  width: 100%;
  max-width: 11rem;
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: contain;
}

#ip .pixel-wisp-expression-caption {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

#ip .pixel-wisp-expression-label {
  font-weight: 700;
  color: var(--foreground);
}

#ip .pixel-wisp-expression-en {
  font-family: "Silkscreen", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

@keyframes wisp-idle-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -0.45rem, 0) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  #ip .pixel-wisp-hero {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

/* 03.1 / PIXEL CHARACTERS */
#ip .pixel-characters {
  container-type: inline-size;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--border);
}

.pixel-characters > h3 {
  margin-top: 0.5rem;
}

.pixel-characters-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pixel-character--luna { --pixel-accent: #f4a4bc; }
.pixel-character--aurel { --pixel-accent: #f2ca74; }
.pixel-character--nami { --pixel-accent: #8dbaff; }

.pixel-character > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transform-origin: 50% 58%;
  will-change: transform;
}

.pixel-character--luna > img {
  animation: pixel-luna-sway 5.2s cubic-bezier(0.45, 0, 0.55, 1) -0.7s infinite;
}

.pixel-character--aurel > img {
  animation: pixel-aurel-hover 4.6s cubic-bezier(0.45, 0, 0.55, 1) -1.3s infinite;
}

.pixel-character--nami > img {
  animation: pixel-nami-swim 4.2s cubic-bezier(0.45, 0, 0.55, 1) -2.1s infinite;
}

@keyframes pixel-luna-sway {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.3deg) scale(1.02);
  }

  50% {
    transform: translate3d(0, -0.4rem, 0) rotate(0.4deg) scale(1.026);
  }
}

@keyframes pixel-aurel-hover {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-0.2deg) scale(1.02);
  }

  45% {
    transform: translate3d(0, -0.45rem, 0) rotate(0.3deg) scale(1.028);
  }

  62% {
    transform: translate3d(0, -0.3rem, 0) rotate(-0.1deg) scale(1.024);
  }
}

@keyframes pixel-nami-swim {
  0%,
  100% {
    transform: translate3d(-0.2rem, 0.125rem, 0) rotate(-0.45deg) scale(1.035);
  }

  50% {
    transform: translate3d(0.25rem, -0.375rem, 0) rotate(0.45deg) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pixel-character > img {
    animation: none;
    transform: none;
    will-change: auto;
  }
}

.pixel-character-caption {
  display: grid;
  gap: 0.35rem;
  padding: clamp(1rem, 1.6vw, 1.5rem);
  border-top: 1px solid var(--border);
}

.pixel-character-species {
  color: var(--pixel-accent, var(--primary));
}

@container (min-width: 31rem) {
  .pixel-characters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 42rem) {
  .pixel-characters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 08 / HARDWARE SCREEN: reuse the approved full-body WISP sprite everywhere. */
#screen .hardware-device-visual {
  position: relative;
  align-self: start;
  overflow: hidden;
}

#screen .hardware-device-photo {
  display: block;
  width: 100%;
  height: auto;
}

#screen .hardware-device-screen {
  position: absolute;
  left: 41.35%;
  top: 39.75%;
  width: 12.15%;
  height: 13.7%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #020605;
}

#screen .hardware-device-screen-wisp {
  display: block;
  width: 124%;
  max-width: none;
  height: 124%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#screen .hardware-status-wisp {
  display: block;
  width: clamp(4rem, 5vw, 5.5rem);
  height: clamp(4rem, 5vw, 5.5rem);
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.footer-wisp {
  width: 10.5rem;
  height: auto;
  margin-block: -1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .footer-wisp {
    animation: none;
  }
}

