:root {
  --bg: #05060c;
  --panel: rgba(15, 16, 28, 0.85);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text: #f4f5ff;
  --muted: rgba(244, 245, 255, 0.68);
  --accent: #ffb703;
  --accent-2: #00d4ff;
  --accent-3: #ff5fa2;
  --danger: #ff476f;
  --success: #43f39c;
  --font: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: radial-gradient(circle at top, #1a1b36 0%, #070812 60%);
  color: var(--text);
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(1rem, 3vw, 3rem);
}

main.shell {
  width: min(1100px, 100%);
  display: grid;
  gap: 1.75rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.hidden {
  display: none !important;
}

header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin: 0.4rem 0 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.65rem;
  color: var(--muted);
  margin: 0;
}

.lede {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2rem;
}

.egg-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.egg-button {
  position: relative;
  width: clamp(160px, 40vw, 220px);
  height: clamp(220px, 45vw, 280px);
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.egg-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 6px;
  border-radius: 40px;
}

.egg-shell {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.35));
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.egg-crack {
  position: absolute;
  inset: 20% 38% 20% 38%;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.12) 46%, transparent 55%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.egg-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 173, 0.6), rgba(255, 247, 173, 0));
  animation: eggPulse 2.8s ease-in-out infinite;
}

.egg-label {
  position: absolute;
  bottom: -2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.egg-button.hatching .egg-shell {
  animation: shake 0.45s ease-in-out infinite;
}

@keyframes eggPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.2;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(0.85);
    opacity: 0.3;
  }
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-2deg);
  }
  75% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.pet-card:hover,
.pet-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.pet-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.pet-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
}

.pet-blurb {
  font-size: 0.95rem;
  color: var(--muted);
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.hearts {
  display: flex;
  gap: 0.4rem;
  font-size: 1.4rem;
}

.heart {
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease, transform 0.3s ease;
}

.heart.filled {
  color: var(--accent);
}

.heart.pulsing {
  animation: pulse 0.9s ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

.stage {
  position: relative;
  margin-top: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.12), rgba(255, 95, 162, 0.08));
  padding: clamp(1rem, 4vw, 2.5rem);
  overflow: hidden;
}

.pet-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.pet-avatar {
  width: clamp(140px, 20vw, 220px);
  aspect-ratio: 1 / 1.05;
  border-radius: 40% 40% 35% 35%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.35));
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.25);
  transition: transform 0.6s ease, filter 0.4s ease;
  overflow: visible;
}

.pet-avatar::after {
  content: '';
  position: absolute;
  inset: 8% 10% auto;
  height: 8px;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(8px);
}

.pet-avatar::before {
  content: '';
  position: absolute;
  inset: -15% 20% auto 20%;
  height: 20%;
  border-radius: 50% 50% 0 0;
  background: rgba(255, 255, 255, 0.35);
  filter: blur(8px);
}

.pet-avatar.owl::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3));
  border-radius: 50% 50% 0 0;
}

.pet-avatar.owl::after {
  border-radius: 50%;
}

.pet-avatar.owl .eyes::before,
.pet-avatar.owl .eyes::after {
  width: 34%;
}

.pet-avatar.owl .eyes::before,
.pet-avatar.owl .eyes::after {
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.4);
}

.pet-avatar.owl .cheeks::before,
.pet-avatar.owl .cheeks::after {
  width: 28%;
  background: rgba(255, 196, 0, 0.35);
}

.pet-avatar.cat::before {
  content: '';
  top: -18%;
  height: 24%;
  width: 40%;
  left: 30%;
  background: transparent;
}

.pet-avatar.cat::after {
  display: none;
}

.pet-avatar.cat .ear {
  position: absolute;
  width: 30%;
  height: 30%;
  top: -8%;
  background: inherit;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 24% 24% 50% 50%;
}

.pet-avatar.cat .ear.left {
  left: 6%;
  transform: rotate(-12deg);
}

.pet-avatar.cat .ear.right {
  right: 6%;
  transform: rotate(12deg);
}

.pet-avatar.cat .eyes::before,
.pet-avatar.cat .eyes::after {
  border-radius: 40% 40% 60% 60%;
}

.pet-avatar.horse::before {
  content: '';
  height: 30%;
  inset: -12% 30% auto;
  border-radius: 50% 50% 40% 40%;
  background: rgba(255, 255, 255, 0.18);
}

.pet-avatar.horse .muzzle {
  position: absolute;
  width: 55%;
  height: 30%;
  bottom: 10%;
  left: 22.5%;
  border-radius: 45% 45% 50% 50%;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.pet-avatar.horse .nostril {
  position: absolute;
  width: 16%;
  height: 30%;
  top: 35%;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
}

.pet-avatar.horse .nostril.left {
  left: 18%;
}

.pet-avatar.horse .nostril.right {
  right: 18%;
}

.pet-avatar .eyes {
  position: absolute;
  width: 70%;
  height: 18%;
  top: 38%;
  left: 15%;
  display: flex;
  justify-content: space-between;
}

.pet-avatar .eyes::before,
.pet-avatar .eyes::after {
  content: '';
  width: 26%;
  height: 100%;
  background: #0b0c14;
  border-radius: 50%;
}

.pet-avatar .cheeks {
  position: absolute;
  width: 80%;
  left: 10%;
  height: 16%;
  bottom: 22%;
  display: flex;
  justify-content: space-between;
}

.pet-avatar .cheeks::before,
.pet-avatar .cheeks::after {
  content: '';
  width: 22%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 95, 162, 0.4);
  filter: blur(3px);
}

.pet-avatar .ear,
.pet-avatar .muzzle,
.pet-avatar .nostril,
.pet-avatar .wing,
.pet-avatar .beak,
.pet-avatar .mane,
.pet-avatar .whisker {
  position: absolute;
  display: none;
}

.pet-avatar.cat .ear {
  display: block;
}

.pet-avatar.cat .whisker {
  display: block;
}

.pet-avatar.owl .wing,
.pet-avatar.owl .beak {
  display: block;
}

.pet-avatar.horse .mane,
.pet-avatar.horse .muzzle,
.pet-avatar.horse .nostril {
  display: block;
}

.pet-avatar .ear {
  width: 26%;
  height: 32%;
  top: -6%;
  background: inherit;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 25% 25% 50% 50%;
}

.pet-avatar .ear.left {
  left: 5%;
  transform: rotate(-12deg);
}

.pet-avatar .ear.right {
  right: 5%;
  transform: rotate(12deg);
}

.pet-avatar .whisker {
  width: 40%;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  top: 50%;
}

.pet-avatar .whisker.left {
  left: -10%;
}

.pet-avatar .whisker.right {
  right: -10%;
}

.pet-avatar .wing {
  width: 45%;
  height: 50%;
  background: inherit;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-radius: 50% 50% 30% 30%;
  bottom: 5%;
  opacity: 0.75;
  animation: wingFlap 2s ease-in-out infinite;
}

.pet-avatar .wing.left {
  left: -25%;
  transform-origin: right center;
}

.pet-avatar .wing.right {
  right: -25%;
  transform-origin: left center;
}

.pet-avatar .beak {
  width: 30%;
  height: 20%;
  background: linear-gradient(180deg, #ffd86f, #ffb347);
  border-radius: 0 0 50% 50%;
  left: 35%;
  top: 48%;
  box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.2);
}

.pet-avatar .mane {
  width: 60%;
  height: 55%;
  top: -15%;
  left: 20%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
  border-radius: 50%;
  filter: blur(2px);
}


.pet-avatar.state-hungry {
  animation: wiggle 1s ease-in-out infinite;
}

.pet-avatar.state-bored {
  animation: bob 1.6s ease-in-out infinite;
}

.pet-avatar.state-dirty {
  box-shadow: inset 0 0 35px rgba(58, 42, 16, 0.55);
}

.pet-avatar.state-dead {
  filter: grayscale(0.6) brightness(0.8);
  animation: none;
}

.pet-avatar.state-dead .eyes::before,
.pet-avatar.state-dead .eyes::after {
  background: transparent;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  transform: rotate(45deg);
}

.pet-avatar.state-zen {
  box-shadow: 0 0 25px rgba(99, 255, 178, 0.35), inset 0 0 25px rgba(255, 255, 255, 0.25);
}

@keyframes wiggle {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-4deg);
  }
  75% {
    transform: rotate(4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes bob {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes wingFlap {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(10deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.animation-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sequence {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.anim {
  position: relative;
}

.anim-feed .food-stack {
  position: absolute;
  bottom: -10px;
  width: 70px;
  height: 70px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, #ffd86f, #ff9640);
  border: 3px solid rgba(255, 255, 255, 0.4);
  animation: foodPop 3s ease forwards;
}

.anim-feed .food-stack::before,
.anim-feed .food-stack::after {
  content: '';
  position: absolute;
  inset: 10% 12%;
  border-radius: inherit;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.anim-feed .food-stack::after {
  inset: 20% 8% auto 8%;
  height: 20px;
  background: rgba(255, 255, 255, 0.25);
}

.anim-feed .sparkle, .anim-feed .grain {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: sparkleDrift 3s ease-in-out infinite;
}


@keyframes foodPop {
  0% {
    transform: translateY(40px) scale(0.5);
    opacity: 0;
  }
  25% {
    transform: translateY(-10px) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}


.anim-feed .grain.g1 { top: -20px; left: -40px; animation-delay: 0s; }
.anim-feed .grain.g2 { top: -35px; left: -5px; animation-delay: 0.4s; }
.anim-feed .grain.g3 { top: -10px; right: -20px; animation-delay: 0.8s; }
.anim-feed .grain.g4 { top: -30px; right: -45px; animation-delay: 1.2s; }

@keyframes sparkleDrift {
  0% { transform: translateY(10px) scale(0.2); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-40px) scale(0.9); opacity: 0; }
}


.anim-wash .spray {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  animation: sprayPulse 5s linear infinite;
}

.anim-wash .wave {
  position: absolute;
  width: 160px;
  height: 40px;
  bottom: -20px;
  border-radius: 50% 50% 0 0;
  background: rgba(0, 212, 255, 0.3);
  animation: waveRock 5s ease-in-out infinite;
}

.anim-wash .bubble {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: bigBubble 5s ease-in-out infinite;
}

.anim-wash .bubble.b1 { left: -60px; animation-delay: 0.2s; }
.anim-wash .bubble.b2 { right: -60px; animation-delay: 0.4s; }
.anim-wash .bubble.b3 { left: 20px; animation-delay: 0.6s; }
.anim-wash .bubble.b4 { right: 20px; animation-delay: 0.8s; }

.anim-wash .sparkle {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: sparkleBlink 5s ease-in-out infinite;
}

.anim-wash .sparkle.s1 { top: -40px; left: -20px; }
.anim-wash .sparkle.s2 { top: -50px; right: -10px; }

@keyframes sprayPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.2;
  }
}

@keyframes waveRock {
  0% {
    transform: translateX(-20px);
  }
  50% {
    transform: translateX(20px);
  }
  100% {
    transform: translateX(-20px);
  }
}

@keyframes bigBubble {
  0% {
    transform: translateY(20px) scale(0.6);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(-60px) scale(1.2);
    opacity: 0;
  }
}

@keyframes sparkleBlink {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.6);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.anim-wash .foam {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: foamPulse 4s ease-in-out infinite;
}

.anim-wash .foam.f2 {
  width: 150px;
  height: 150px;
  animation-delay: 0.5s;
}

.anim-wash .foam.f3 {
  width: 90px;
  height: 90px;
  animation-delay: 1s;
}

@keyframes foamPulse {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  30% {
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.anim-play .toy {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.4);
  border-top-color: transparent;
  animation: toyOrbit 5s linear infinite;
}

.anim-play .trail {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  animation: trailPulse 5s ease-in-out infinite;
}

.anim-play .star {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--accent-3);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: starTwirl 5s ease-in-out infinite;
}

.anim-play .star.s1 { top: -20px; left: 10px; }
.anim-play .star.s2 { top: 10px; right: -30px; animation-delay: 0.7s; }
.anim-play .star.s3 { bottom: -30px; left: -10px; animation-delay: 1.2s; }

@keyframes toyOrbit {
  0% {
    transform: rotate(0deg) scale(0.8);
  }
  50% {
    transform: rotate(180deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(0.8);
  }
}

@keyframes trailPulse {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.2;
  }
}

@keyframes starTwirl {
  0% {
    transform: scale(0.4) rotate(0deg);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0;
  }
}

.anim-walk .path {
  position: absolute;
  width: 220px;
  height: 80px;
  border-radius: 150px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  animation: pathGlow 5s ease-in-out infinite;
}

.anim-walk .step {
  position: absolute;
  width: 40px;
  height: 24px;
  border-radius: 50% 50% 35% 35%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: stepStride 5s ease forwards;
}

.anim-walk .step.s1 { animation-delay: 0.2s; }
.anim-walk .step.s2 { animation-delay: 0.8s; }
.anim-walk .step.s3 { animation-delay: 1.4s; }
.anim-walk .step.s4 { animation-delay: 2s; }
.anim-walk .step.s5 { animation-delay: 2.6s; }

@keyframes pathGlow {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.2;
  }
}

@keyframes stepStride {
  0% {
    transform: translate(-100px, 20px) scale(0.5);
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translate(100px, -20px) scale(1);
    opacity: 0;
  }
}

.anim-tombstone .grave {
  width: 160px;
  height: 160px;
  border-radius: 60px 60px 12px 12px;
  background: rgba(30, 30, 40, 0.9);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: graveRise 2.2s ease forwards;
}

.anim-tombstone span {
  font-size: 2.5rem;
}

.anim-tombstone p {
  margin: 0;
  letter-spacing: 0.3em;
  color: var(--muted);
}

@keyframes graveRise {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.animation-layer .burst {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  animation: fadePop 0.6s ease forwards;
}

@keyframes fadePop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0;
  }
}

.stat-board {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  display: block;
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3));
  border-radius: inherit;
  transition: width 0.3s ease;
}

.actions {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.actions button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.actions button:hover,
.actions button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.log {
  margin-top: 1.75rem;
  min-height: 110px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1rem;
  font-family: "IBM Plex Mono", SFMono-Regular, Consolas, monospace;
  color: var(--muted);
  line-height: 1.4;
}

.log p {
  margin: 0.2rem 0;
}

.footer-controls {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: var(--text);
  padding: 0.65rem 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.mood {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.endcard {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#end-title {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0;
}

#end-copy {
  color: var(--muted);
  margin: 0 auto;
  max-width: 40ch;
}

#restart-btn {
  align-self: center;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  background: var(--accent-3);
  color: #05060c;
  cursor: pointer;
}

@media (max-width: 720px) {
  .actions button {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}
