@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Nunito:wght@700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #321b75;
  --ink-soft: #675f8e;
  --purple: #7f53ff;
  --purple-deep: #441f9d;
  --pink: #ff71aa;
  --blue: #46b7ff;
  --mint: #51d786;
  --gold: #ffd76a;
  --cream: #fff8e5;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(133, 97, 255, 0.14);
  --panel-shadow:
    0 20px 44px rgba(133, 97, 255, 0.14),
    0 12px 32px rgba(255, 211, 108, 0.22);
  --button-shadow: 0 14px 28px rgba(79, 57, 166, 0.18);
  --pet-hue: 176;
  --pet-accent: 196;
  --pet-shadow: 163;
  font-family: "Nunito", "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink-soft);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 224, 244, 0.72) 0 15%, transparent 16%),
    radial-gradient(circle at 82% 18%, rgba(255, 240, 176, 0.8) 0 14%, transparent 15%),
    radial-gradient(circle at 18% 86%, rgba(204, 242, 255, 0.92) 0 18%, transparent 19%),
    linear-gradient(180deg, #fff7df 0%, #fff1f7 48%, #ddf6ff 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  pointer-events: none;
  opacity: 0.28;
}

body::before {
  content: "✦";
  top: 12vh;
  right: 18vw;
  color: #ffd84e;
  font-size: 3.5rem;
  text-shadow:
    0 0 0 rgba(255, 255, 255, 0.65),
    20px 30px 0 rgba(255, 216, 78, 0.65),
    -380px 520px 0 rgba(255, 176, 204, 0.68),
    -40px 620px 0 rgba(255, 236, 150, 0.68);
}

body::after {
  content: "🐾";
  top: 28vh;
  left: 2vw;
  font-size: 3.6rem;
  text-shadow:
    320px 540px 0 rgba(134, 204, 255, 0.72),
    840px 620px 0 rgba(255, 178, 209, 0.72);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  min-height: 46px;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  color: var(--ink);
  background: var(--panel-strong);
  box-shadow: var(--panel-shadow);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    filter 160ms ease;
}

button:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 83, 255, 0.24);
  box-shadow:
    0 24px 42px rgba(133, 97, 255, 0.18),
    0 16px 34px rgba(255, 211, 108, 0.22);
}

button:active {
  transform: translateY(0);
}

button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.72;
}

input {
  min-width: 0;
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(117, 120, 157, 0.18);
  border-radius: 18px;
  padding: 0 16px;
  color: #595876;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

input::placeholder {
  color: #8a87aa;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(127, 83, 255, 0.28);
  outline-offset: 3px;
}

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

h1 {
  display: grid;
  gap: 2px;
  margin-bottom: 0;
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: clamp(4.2rem, 8vw, 5.95rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--purple-deep);
  text-shadow: 0 18px 34px rgba(127, 83, 255, 0.1);
}

h2 {
  margin-bottom: 8px;
  color: #4b4767;
  font-size: 2rem;
  line-height: 1.02;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.08fr) minmax(360px, 0.92fr);
  grid-template-areas:
    "play controls"
    "gallery gallery";
  gap: 28px 36px;
  width: min(1240px, calc(100vw - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 0 36px;
  align-items: start;
}

.play-panel {
  grid-area: play;
  position: relative;
  min-width: 0;
}

.control-panel {
  grid-area: controls;
  position: relative;
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
}

.gallery-panel {
  grid-area: gallery;
  position: relative;
  min-width: 0;
  padding-top: 10px;
}

.play-panel::before,
.play-panel::after,
.gallery-panel::before,
.gallery-panel::after {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
}

.play-panel::before {
  content: "🐾";
  left: -22px;
  top: 210px;
  font-size: 3.2rem;
  color: rgba(255, 137, 188, 0.52);
}

.play-panel::after {
  content: "✦";
  right: 140px;
  top: 36px;
  font-size: 2.8rem;
  color: rgba(255, 212, 89, 0.74);
  text-shadow: 28px 24px 0 rgba(255, 223, 124, 0.74);
}

.gallery-panel::before {
  content: "🐾";
  left: 24%;
  bottom: 6px;
  font-size: 3rem;
  color: rgba(134, 204, 255, 0.48);
}

.gallery-panel::after {
  content: "✦";
  left: 38%;
  bottom: 12px;
  font-size: 2.2rem;
  color: rgba(255, 225, 130, 0.58);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.brand-lockup {
  display: grid;
  gap: 10px;
}

.eyebrow {
  margin-bottom: 0;
  color: var(--pink);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pages-link,
.met-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-weight: 900;
  text-decoration: none;
}

.pages-link {
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 161, 198, 0.38);
  box-shadow: var(--panel-shadow);
  color: var(--pink);
}

.pages-link:hover,
.met-link:hover {
  filter: brightness(1.04);
}

.pet-device {
  width: min(100%, 610px);
  margin: 0 auto;
  overflow: hidden;
  border: 4px solid rgba(127, 83, 255, 0.88);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 230, 0.94));
  box-shadow:
    0 26px 64px rgba(127, 83, 255, 0.2),
    0 16px 48px rgba(255, 211, 108, 0.24);
}

.device-top {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  height: 42px;
  background: linear-gradient(90deg, #b7fff1 0%, #9df7eb 48%, #c6f7ff 100%);
  border-bottom: 3px solid rgba(127, 83, 255, 0.26);
}

.device-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 2px 0 rgba(68, 31, 157, 0.18);
}

.lcd-screen {
  display: grid;
  background: rgba(255, 249, 242, 0.92);
}

.screen-status {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(127, 83, 255, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: #0986c8;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.screen-status span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-stage {
  position: relative;
  overflow: hidden;
  min-height: 544px;
  padding: 36px 28px 34px;
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 255, 255, 0.5) 0 11%, transparent 12%),
    radial-gradient(circle at 83% 58%, rgba(255, 244, 135, 0.56) 0 1.8%, transparent 2%),
    linear-gradient(90deg, rgba(255, 232, 185, 0.96) 0 36%, rgba(255, 215, 236, 0.96) 36% 100%);
}

.pet-stage::before {
  content: "";
  position: absolute;
  inset: auto -8% 24px;
  height: 136px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 246, 185, 0.94) 0 20%, rgba(255, 221, 103, 0.58) 21% 34%, transparent 35%),
    linear-gradient(180deg, transparent, rgba(255, 242, 202, 0.24));
  pointer-events: none;
}

.scene-window {
  position: absolute;
  top: 28px;
  left: 24px;
  width: 134px;
  height: 272px;
  border: 8px solid #f7c85f;
  border-radius: 92px 92px 18px 18px;
  background: linear-gradient(180deg, #87d8ff 0%, #d8ffff 42%, #99df7e 43%, #83d566 66%, #ffe78e 100%);
  box-shadow:
    inset 0 0 0 8px rgba(255, 249, 230, 0.72),
    0 16px 24px rgba(243, 170, 73, 0.18);
}

.scene-window::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 76px 76px 10px 10px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(244, 186, 82, 0.84) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 58%, rgba(244, 186, 82, 0.84) 58% 61%, transparent 61%),
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.92) 0 10%, transparent 11%),
    radial-gradient(circle at 66% 22%, rgba(255, 255, 255, 0.82) 0 8%, transparent 9%),
    linear-gradient(180deg, rgba(172, 239, 255, 0.9) 0%, rgba(225, 255, 255, 0.88) 38%, rgba(138, 221, 113, 0.88) 39%, rgba(92, 184, 83, 0.92) 70%, rgba(255, 232, 150, 0.92) 100%);
}

.scene-window::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  box-shadow: inset 10px -20px 0 rgba(255, 255, 255, 0.16);
}

.wall-glow {
  position: absolute;
  top: 76px;
  right: 36px;
  width: 156px;
  height: 202px;
  padding: 10px;
  border: 10px solid #ffbf46;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffdc79, #ffba44);
  box-shadow:
    inset 0 0 0 4px rgba(255, 245, 205, 0.64),
    0 20px 28px rgba(255, 184, 61, 0.22);
  transform: rotate(2deg);
}

.wall-glow::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid rgba(255, 247, 208, 0.62);
  border-radius: 10px;
  pointer-events: none;
}

.wall-glow::after {
  content: "✦";
  position: absolute;
  right: -14px;
  bottom: -22px;
  color: rgba(255, 226, 115, 0.92);
  font-size: 1.8rem;
}

.wall-glow img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(1.14) contrast(1.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.pedestal {
  position: absolute;
  left: 50%;
  bottom: 42px;
  z-index: 1;
  width: 356px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 250, 201, 0.98) 0 22%, rgba(255, 227, 117, 0.54) 23% 38%, rgba(255, 223, 127, 0.18) 39% 54%, transparent 55%);
}

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

.reaction-effects span {
  position: absolute;
  left: calc(10% + (var(--i) * 14%));
  top: calc(12% + ((var(--i) % 3) * 18%));
  font-size: clamp(1rem, 1.7vw, 1.75rem);
  animation: sparkle-float 980ms ease-out both;
  filter: drop-shadow(0 4px 6px rgba(255, 255, 255, 0.5));
}

.met-pet {
  position: relative;
  z-index: 3;
  width: 332px;
  height: 352px;
  margin: 86px auto 0;
  scale: var(--pet-scale, 1);
  animation: pet-bounce 2.4s ease-in-out infinite;
}

.pet-tail {
  display: none;
}

.pet-ear {
  position: absolute;
  top: 28px;
  z-index: 1;
  width: 98px;
  height: 110px;
  border: 5px solid #4851bf;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 42%, rgba(255, 255, 255, 0.38) 0 17%, transparent 18%),
    radial-gradient(circle at 50% 56%, rgba(205, 255, 255, 0.72) 0 34%, transparent 35%),
    linear-gradient(180deg, hsl(var(--pet-hue) 88% 78%), hsl(var(--pet-shadow) 78% 70%));
  box-shadow: inset 0 -10px 0 rgba(18, 134, 158, 0.08);
}

.pet-ear-left {
  left: 36px;
  transform: rotate(-9deg);
}

.pet-ear-right {
  right: 36px;
  transform: rotate(9deg);
}

.pet-tuft {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 70px;
  height: 78px;
  transform: translateX(-50%);
}

.pet-tuft::before {
  content: "";
  position: absolute;
  left: 32px;
  bottom: 14px;
  width: 6px;
  height: 26px;
  border-radius: 999px;
  background: #4e8f38;
}

.pet-tuft::after,
.pet-tuft span {
  content: "";
  position: absolute;
  top: 8px;
  width: 24px;
  height: 34px;
  border: 4px solid #4e8f38;
  background: linear-gradient(180deg, #b6ff81, #6fdc72);
  border-radius: 100% 0 100% 0;
}

.pet-tuft::after {
  left: 10px;
  transform: rotate(-30deg);
}

.pet-tuft span {
  right: 10px;
  display: block;
  transform: scaleX(-1) rotate(-30deg);
}

.pet-body {
  position: absolute;
  inset: 76px 32px 40px;
  z-index: 3;
  overflow: hidden;
  border: 5px solid #4851bf;
  border-radius: 50% 50% 42% 42% / 47% 47% 54% 54%;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.5) 0 18%, transparent 19%),
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.3) 0 9%, transparent 10%),
    linear-gradient(180deg, hsl(var(--pet-hue) 100% 82%), hsl(var(--pet-shadow) 82% 73%));
  box-shadow:
    inset 0 -18px 0 rgba(18, 134, 158, 0.08),
    0 18px 30px rgba(72, 81, 191, 0.08);
}

.pet-body::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 34px;
  width: 58px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: rotate(-12deg);
}

.pet-body::after {
  content: "";
  position: absolute;
  top: 54px;
  left: 38px;
  width: 84px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(-18deg);
}

.pet-belly {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 132px;
  height: 100px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 22%, rgba(255, 255, 255, 0.54) 0 10%, transparent 11%),
    rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 -12px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(-50%);
}

.pet-face {
  position: absolute;
  inset: 0;
  z-index: 4;
  transform: translateY(-8px);
}

.eye {
  position: absolute;
  top: 78px;
  width: 56px;
  height: 82px;
  overflow: hidden;
  border-radius: 48% 48% 44% 44% / 50% 50% 48% 48%;
  background:
    radial-gradient(circle at 50% 76%, rgba(133, 238, 255, 0.42) 0 20%, transparent 21%),
    radial-gradient(circle at 48% 56%, rgba(140, 160, 255, 0.24) 0 34%, transparent 35%),
    linear-gradient(180deg, #7a72ff 0%, #5a61e7 42%, #2d356f 100%);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.18),
    inset 0 -8px 10px rgba(33, 44, 102, 0.2),
    0 5px 0 rgba(72, 81, 191, 0.08),
    0 0 12px rgba(125, 211, 255, 0.08);
}

.eye::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 11px;
  width: 20px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    15px 22px 0 -8px rgba(255, 255, 255, 0.96),
    2px 42px 0 8px rgba(122, 236, 255, 0.34),
    18px 48px 0 -1px rgba(255, 255, 255, 0.72);
}

.eye::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 20px;
  height: 24px;
  border-radius: 50%;
  background: rgba(118, 231, 255, 0.38);
  box-shadow:
    -8px -10px 0 -9px rgba(255, 255, 255, 0.24),
    8px -8px 0 -10px rgba(255, 255, 255, 0.2);
  transform: translateX(-50%);
}

.eye-left {
  left: 40px;
  transform: rotate(-5deg);
}

.eye-right {
  right: 40px;
  transform: rotate(5deg);
}

.cheek {
  position: absolute;
  top: 154px;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 132, 184, 0.62);
  filter: blur(0.35px);
}

.cheek-left {
  left: 26px;
  transform: rotate(8deg);
}

.cheek-right {
  right: 26px;
  transform: rotate(-8deg);
}

.nose {
  position: absolute;
  top: 150px;
  left: 50%;
  width: 18px;
  height: 12px;
  border-radius: 52% 52% 68% 68%;
  background: linear-gradient(180deg, #6446a7, #412e75);
  box-shadow: 0 2px 0 rgba(71, 45, 120, 0.16);
  transform: translateX(-50%);
}

.nose::before,
.nose::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.nose::before {
  top: 2px;
  left: 4px;
  width: 5px;
  height: 3px;
  background: rgba(255, 255, 255, 0.44);
}

.nose::after {
  display: none;
}

.mouth {
  position: absolute;
  top: 164px;
  left: 50%;
  width: 48px;
  height: 30px;
  overflow: hidden;
  border: 4px solid #472d78;
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, #552564 0%, #3f1f56 100%);
  box-shadow: 0 2px 0 rgba(71, 45, 120, 0.08);
  transform: translateX(-50%);
}

.mouth::before,
.mouth::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mouth::before {
  bottom: -1px;
  width: 24px;
  height: 16px;
  border-radius: 14px 14px 9px 9px;
  background: linear-gradient(180deg, #ffabc9, #ff6e98);
}

.mouth::after {
  top: -8px;
  width: 54px;
  height: 13px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, hsl(var(--pet-hue) 100% 82%), hsl(var(--pet-shadow) 82% 73%));
}

.pet-paw {
  position: absolute;
  top: 174px;
  z-index: 5;
  width: 104px;
  height: 76px;
  border: 5px solid #4851bf;
  border-radius: 60% 60% 52% 52%;
  background: linear-gradient(180deg, hsl(var(--pet-hue) 100% 82%), hsl(var(--pet-shadow) 82% 73%));
  box-shadow: inset 0 -10px 0 rgba(18, 134, 158, 0.08);
}

.pet-paw::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(71, 45, 120, 0.24);
  box-shadow:
    -18px 2px 0 rgba(71, 45, 120, 0.2),
    18px 2px 0 rgba(71, 45, 120, 0.2);
  transform: translateX(-50%);
}

.pet-paw-left {
  left: -24px;
  transform: rotate(24deg);
}

.pet-paw-right {
  right: -24px;
  transform: rotate(-24deg);
}

.pet-feet {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 4;
  display: flex;
  gap: 110px;
  transform: translateX(-50%);
}

.pet-feet span {
  position: relative;
  width: 72px;
  height: 40px;
  border: 5px solid #4851bf;
  border-radius: 999px 999px 26px 26px;
  background: linear-gradient(180deg, hsl(var(--pet-hue) 100% 82%), hsl(var(--pet-shadow) 82% 73%));
  box-shadow: inset 0 -8px 0 rgba(18, 134, 158, 0.08);
}

.pet-feet span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(71, 45, 120, 0.22);
  box-shadow:
    -16px 0 0 rgba(71, 45, 120, 0.18),
    16px 0 0 rgba(71, 45, 120, 0.18);
  transform: translateX(-50%);
}

.strength-badge {
  margin: 0;
  padding: 16px 24px 8px;
  color: #0fa0bf;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.pet-message {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  margin: 0 18px 18px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(255, 216, 101, 0.32),
    0 16px 30px rgba(255, 214, 105, 0.18);
  color: #5a5077;
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
}

.pet-message::before {
  content: "💗";
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe2ef, #fff6fb);
  box-shadow: 0 10px 18px rgba(255, 133, 182, 0.14);
}

.pet-device[data-reaction="play"] .pet-message::before {
  content: "⚽";
}

.pet-device[data-reaction="conserve"] .pet-message::before {
  content: "✨";
}

.pet-device[data-reaction="study"] .pet-message::before {
  content: "💡";
}

.pet-device[data-reaction="health"] .pet-message::before,
.pet-device[data-reaction="health-boost"] .pet-message::before {
  content: "🌈";
}

.pet-device[data-reaction="hatch"] .pet-message::before {
  content: "🌱";
}

.device-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}

.device-controls button {
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: var(--button-shadow);
}

.device-controls button span[aria-hidden="true"] {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  font-size: 1rem;
}

.device-controls [data-care-action="feed"] {
  background: linear-gradient(135deg, #ff8bbe, #ff5f93);
}

.device-controls [data-care-action="play"] {
  background: linear-gradient(135deg, #64c8ff, #2ca5f2);
}

.device-controls [data-care-action="conserve"] {
  background: linear-gradient(135deg, #70e6a6, #4acb78);
}

.device-controls [data-care-action="study"] {
  background: linear-gradient(135deg, #a27dff, #7a54ff);
}

.device-controls button[data-favorite="true"] {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.44),
    0 18px 30px rgba(255, 211, 108, 0.3);
}

.device-controls [data-resample-look] {
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border: 1px solid rgba(127, 83, 255, 0.14);
  box-shadow: var(--panel-shadow);
}

.device-controls [data-resample-look] span[aria-hidden="true"] {
  background: rgba(127, 83, 255, 0.12);
}

.hatch-card,
.art-card,
.health-card,
.meter-list,
.tip-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(10px);
}

.hatch-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.hatch-card label {
  display: block;
  margin-bottom: 0;
  color: var(--purple);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hatch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 12px;
}

.hatch-row button {
  background: linear-gradient(135deg, #8c62ff, #6c43f0);
  color: #fff;
  font-weight: 900;
}

.status-message {
  min-height: 22px;
  margin: 0;
  color: var(--purple);
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.45;
}

.status-message[data-tone="loading"] {
  color: #c98d13;
}

.status-message[data-tone="error"] {
  color: #d84a7e;
}

.status-message[data-tone="success"] {
  color: var(--purple);
}

.sample-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sample-row button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffef7, #fff6d7);
  color: #696381;
  font-size: 0.98rem;
  font-weight: 900;
}

.sample-row button[aria-pressed="true"] {
  background: linear-gradient(135deg, #fff7ff, #f3ebff);
  border-color: rgba(127, 83, 255, 0.34);
  color: var(--purple);
  box-shadow:
    0 16px 26px rgba(127, 83, 255, 0.12),
    0 10px 20px rgba(255, 211, 108, 0.16);
}

.sample-row button span[aria-hidden="true"] {
  font-size: 1.15rem;
}

.candidate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.candidate-list:empty {
  display: none;
}

.candidate-card,
.gallery-card {
  display: grid;
  align-items: center;
  text-align: left;
}

.candidate-card {
  min-height: 112px;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 18px 28px rgba(127, 83, 255, 0.08),
    0 12px 24px rgba(255, 218, 112, 0.16);
}

.candidate-card img,
.gallery-card img,
.thumb-placeholder {
  width: 84px;
  height: 84px;
  border: 1px solid rgba(127, 83, 255, 0.08);
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(139, 237, 255, 0.95), rgba(255, 237, 169, 0.95));
}

.thumb-placeholder {
  display: block;
}

.candidate-card strong,
.gallery-card strong {
  display: block;
  overflow: hidden;
  color: #393755;
  font-size: 1.02rem;
  line-height: 1.18;
  text-overflow: ellipsis;
}

.candidate-card small,
.gallery-card small {
  display: block;
  margin-top: 6px;
  color: #7d7898;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.28;
}

.art-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.art-card::after {
  content: "🎨";
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff4c7, #ffe59f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 12px 18px rgba(255, 214, 105, 0.2);
}

.art-card h2 {
  margin-bottom: 6px;
}

.art-meta,
.pet-lore {
  margin-bottom: 0;
  color: #767292;
  line-height: 1.48;
  font-weight: 800;
}

.pet-lore {
  color: #605a82;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(255, 215, 107, 0.44);
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf4, #fff5d4);
  color: #716987;
  font-size: 0.8rem;
  font-weight: 900;
}

.met-link {
  color: var(--purple);
  font-size: 1.15rem;
  font-weight: 900;
}

.tip-card {
  display: flex;
  align-items: center;
  min-height: 76px;
  padding: 16px 22px 16px 72px;
  background: linear-gradient(180deg, rgba(255, 236, 245, 0.88), rgba(255, 246, 250, 0.92));
}

.tip-card::before {
  content: "💡";
  position: absolute;
  left: 22px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe1ef, #fff6fb);
  box-shadow: 0 10px 18px rgba(255, 133, 182, 0.12);
  transform: translateY(-50%);
}

.tip-copy {
  margin: 0;
  color: #6b5f8f;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.42;
}

.health-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.health-score-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.health-ring {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 54%, transparent 55%),
    conic-gradient(var(--purple) calc(var(--score) * 1%), rgba(127, 83, 255, 0.1) 0);
  box-shadow: inset 0 0 0 1px rgba(127, 83, 255, 0.08);
}

.health-ring[data-stage="fragile"],
.health-ring[data-stage="tired"] {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.92) 54%, transparent 55%),
    conic-gradient(var(--pink) calc(var(--score) * 1%), rgba(127, 83, 255, 0.1) 0);
}

.health-ring span {
  color: #433f61;
  font-size: 1.48rem;
  font-weight: 900;
}

.health-nudge,
.health-score-copy {
  margin-bottom: 0;
  color: #6c6788;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.42;
}

.health-stage-legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.health-stage-chip {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(127, 83, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.health-stage-chip strong,
.health-stage-chip small {
  display: block;
}

.health-stage-chip strong {
  color: #484360;
  font-size: 0.86rem;
}

.health-stage-chip small {
  color: #7d7898;
  font-size: 0.76rem;
  font-weight: 800;
}

.health-stage-chip[data-active="true"] {
  border-color: rgba(81, 215, 134, 0.26);
  background: linear-gradient(180deg, rgba(242, 255, 250, 0.92), rgba(230, 250, 242, 0.94));
}

.health-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.health-mini-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(127, 83, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.health-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.health-mini-card h3 {
  margin-bottom: 0;
  color: #474260;
  font-size: 0.94rem;
}

.health-contribution {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(127, 83, 255, 0.08);
  color: var(--purple);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.health-mini-card p {
  margin-bottom: 8px;
  color: #7a7594;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.3;
}

.health-mini-card strong {
  display: inline-block;
  margin-bottom: 4px;
  color: #3b3960;
  font-size: 1rem;
}

.health-mini-card small {
  display: block;
  margin-bottom: 9px;
  color: #6f6888;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.health-mini-card.watch strong {
  color: #cf4f87;
}

.health-mini-card.watch .health-contribution {
  background: rgba(255, 113, 170, 0.08);
  color: #cf4f87;
}

.health-bar {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(127, 83, 255, 0.1);
}

.health-bar i {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7f53ff, #47c1ff);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preset-row button {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffef9, #fff2c7);
  color: #6d6688;
  font-weight: 900;
}

.preset-row button[aria-pressed="true"] {
  background: linear-gradient(135deg, #8a62ff, #6d43f0);
  color: #fff;
}

.health-config-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.health-config-head h3 {
  margin-bottom: 0;
  color: #4a4763;
  font-size: 1rem;
}

.health-config-head span {
  color: #8a86a5;
  font-size: 0.78rem;
  font-weight: 900;
}

.health-picker,
.health-values {
  display: grid;
  gap: 10px;
}

.health-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(127, 83, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.health-option-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.health-option-main input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--purple);
}

.health-option-main strong,
.health-option-main small,
.goal-field small {
  display: block;
}

.health-option-main strong {
  overflow: hidden;
  color: #474260;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-option-main small,
.goal-field small {
  color: #8a86a5;
  font-size: 0.74rem;
  font-weight: 800;
}

.goal-field {
  display: grid;
  gap: 4px;
}

.goal-field input {
  min-height: 40px;
  padding: 0 10px;
}

.health-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  padding: 12px 14px;
  border: 1px solid rgba(127, 83, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.health-control-row label {
  overflow: hidden;
  color: #474260;
  font-size: 0.9rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-control-row output {
  color: #7c7997;
  font-size: 0.9rem;
  font-weight: 900;
}

.health-control-row input[type="range"] {
  grid-column: 1 / -1;
  min-height: 28px;
  padding: 0;
  accent-color: var(--purple);
  background: transparent;
}

.motion-button {
  min-height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #79dfff, #6d8cff);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
}

.meter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.meter {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(127, 83, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.emotion-face {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.12rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.meter strong,
.meter small {
  display: block;
}

.meter strong {
  overflow: hidden;
  color: #474260;
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meter small {
  color: #7d7898;
  font-size: 0.8rem;
  font-weight: 800;
}

.meter[data-state="happy"] .emotion-face,
.meter[data-state="curious"] .emotion-face {
  background: linear-gradient(180deg, #fff4c7, #ffe394);
}

.meter[data-state="excited"] .emotion-face,
.meter[data-state="inspired"] .emotion-face {
  background: linear-gradient(180deg, #d9f6ff, #98dfff);
}

.meter[data-state="proud"] .emotion-face {
  background: linear-gradient(180deg, #e0ffe3, #aaf2b9);
}

.meter[data-state="sleepy"] .emotion-face,
.meter[data-state="hungry"] .emotion-face {
  background: linear-gradient(180deg, #ffe6f0, #ffc9e1);
}

.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.gallery-heading h2,
.gallery-heading .eyebrow {
  margin-bottom: 0;
}

.gallery-heading h2 {
  font-family: "Baloo 2", "Nunito", sans-serif;
  font-size: 2.4rem;
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--purple);
}

.gallery-strip {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}

.gallery-strip::-webkit-scrollbar {
  height: 10px;
}

.gallery-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(127, 83, 255, 0.28);
}

.gallery-card {
  min-width: 260px;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--panel-shadow);
  scroll-snap-align: start;
}

.gallery-card img,
.gallery-card .thumb-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.gallery-card[aria-pressed="true"] {
  border-color: rgba(127, 83, 255, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 240, 255, 0.92));
}

.empty-gallery {
  margin: 0;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  color: #6c6688;
  font-weight: 900;
}

[data-evolution="baby"] {
  --pet-scale: 0.92;
}

[data-evolution="bright"] {
  --pet-scale: 1;
}

[data-evolution="guardian"] {
  --pet-scale: 1.06;
}

[data-evolution="guardian"] .pet-stage::before {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 250, 201, 1) 0 21%, rgba(255, 227, 117, 0.64) 22% 38%, rgba(255, 223, 127, 0.26) 39% 58%, transparent 59%),
    linear-gradient(180deg, transparent, rgba(255, 242, 202, 0.24));
}

[data-mood="radiant"] .met-pet {
  animation-duration: 1.85s;
}

[data-mood="radiant"] .eye {
  background: linear-gradient(180deg, #6b65ff 0%, #33297e 46%, #18103f 100%);
}

[data-mood="radiant"] .pet-body {
  box-shadow:
    inset 0 -18px 0 rgba(18, 134, 158, 0.08),
    0 18px 30px rgba(72, 81, 191, 0.12),
    0 0 34px rgba(116, 255, 224, 0.22);
}

[data-mood="restless"] .pet-paw-left {
  transform: rotate(32deg) translateY(-8px);
}

[data-mood="restless"] .pet-paw-right {
  transform: rotate(-32deg) translateY(-8px);
}

[data-mood="wilting"] .pet-body,
[data-mood="wilting"] .pet-ear,
[data-mood="wilting"] .pet-paw,
[data-mood="wilting"] .pet-feet span {
  filter: saturate(0.8);
}

[data-mood="wilting"] .eye {
  top: 112px;
  height: 16px;
  border-radius: 999px;
  background: #3b2a6b;
  box-shadow: none;
}

[data-mood="wilting"] .eye::before,
[data-mood="wilting"] .eye::after {
  display: none;
}

[data-mood="wilting"] .mouth {
  top: 178px;
  height: 16px;
  background: none;
}

[data-mood="wilting"] .mouth::before,
[data-mood="wilting"] .mouth::after {
  top: 6px;
  border-bottom: 0;
  border-top: 5px solid #472d78;
  border-radius: 999px 999px 0 0;
}

[data-pattern="halo"] .pet-stage {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.62) 0 11%, transparent 12%),
    radial-gradient(circle at 82% 60%, rgba(255, 244, 135, 0.62) 0 1.8%, transparent 2%),
    linear-gradient(90deg, rgba(255, 240, 209, 0.96) 0 36%, rgba(255, 213, 241, 0.96) 36% 100%);
}

[data-pattern="marble"] .pet-stage {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2) 0 4%, transparent 4% 12%, rgba(255, 255, 255, 0.16) 12% 14%, transparent 14%),
    linear-gradient(90deg, rgba(255, 232, 185, 0.96) 0 36%, rgba(255, 215, 236, 0.96) 36% 100%);
}

[data-pattern="mosaic"] .pet-stage {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 232, 185, 0.96) 0 36%, rgba(255, 215, 236, 0.96) 36% 100%);
}

[data-pattern="stitch"] .pet-stage {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 10px, transparent 10px 18px),
    linear-gradient(90deg, rgba(255, 232, 185, 0.96) 0 36%, rgba(255, 215, 236, 0.96) 36% 100%);
}

@keyframes pet-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes sparkle-float {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.7) rotate(-8deg);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-16px) scale(1.04) rotate(6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "play"
      "controls"
      "gallery";
    width: min(100vw - 32px, 760px);
  }

  .control-panel,
  .gallery-panel {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  body::before,
  body::after,
  .play-panel::before,
  .play-panel::after,
  .gallery-panel::before,
  .gallery-panel::after {
    display: none;
  }

  h1 {
    font-size: clamp(3.3rem, 16vw, 4.6rem);
  }

  .app-shell {
    width: min(100vw - 20px, 760px);
    padding: 18px 0 24px;
    gap: 20px;
  }

  .masthead {
    grid-template-columns: 1fr;
  }

  .pet-device {
    width: 100%;
  }

  .pet-stage {
    min-height: 458px;
    padding: 28px 18px 26px;
  }

  .scene-window {
    top: 22px;
    left: 16px;
    width: 106px;
    height: 216px;
  }

  .wall-glow {
    top: 68px;
    right: 18px;
    width: 118px;
    height: 154px;
    padding: 8px;
    border-width: 8px;
  }

  .met-pet {
    width: 280px;
    height: 304px;
    margin-top: 88px;
  }

  .pet-ear {
    width: 82px;
    height: 90px;
  }

  .pet-ear-left {
    left: 28px;
  }

  .pet-ear-right {
    right: 28px;
  }

  .pet-body {
    inset: 68px 26px 34px;
  }

  .eye {
    top: 66px;
    width: 48px;
    height: 70px;
  }

  .eye-left {
    left: 32px;
  }

  .eye-right {
    right: 32px;
  }

  .cheek {
    top: 136px;
    width: 42px;
    height: 24px;
  }

  .cheek-left {
    left: 22px;
  }

  .cheek-right {
    right: 22px;
  }

  .nose {
    top: 132px;
    width: 16px;
    height: 10px;
  }

  .mouth {
    top: 144px;
    width: 40px;
    height: 24px;
  }

  .pet-paw {
    top: 150px;
    width: 86px;
    height: 62px;
  }

  .pet-paw-left {
    left: -18px;
  }

  .pet-paw-right {
    right: -18px;
  }

  .pet-feet {
    gap: 88px;
  }

  .pet-feet span {
    width: 60px;
    height: 34px;
  }

  .pedestal {
    width: 280px;
    bottom: 34px;
  }

  .device-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .device-controls [data-resample-look] {
    grid-column: 1 / -1;
  }

  .hatch-row {
    grid-template-columns: 1fr;
  }

  .sample-row,
  .candidate-list,
  .health-mini-grid,
  .health-stage-legend,
  .meter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .candidate-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .candidate-card img,
  .thumb-placeholder {
    width: 72px;
    height: 72px;
  }

  .health-option {
    grid-template-columns: 1fr;
  }

  .health-config-head {
    align-items: flex-start;
  }

  .gallery-card {
    min-width: 220px;
  }
}

@media (max-width: 560px) {
  .sample-row,
  .candidate-list,
  .health-mini-grid,
  .health-stage-legend,
  .meter-list {
    grid-template-columns: 1fr;
  }

  .pet-message {
    margin-inline: 12px;
    font-size: 0.96rem;
  }

  .screen-status {
    font-size: 0.86rem;
  }

  .art-card,
  .health-card,
  .hatch-card,
  .meter-list,
  .tip-card {
    padding-inline: 16px;
  }

  .gallery-heading {
    align-items: start;
  }
}
