:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ink: #17324d;
  --muted: #5f7182;
  --cream: #fff7e8;
  --white: #fffef8;
  --leaf: #8fcf9f;
  --sky: #a7ddff;
  --sun: #facc15;
  --coral: #fb7185;
  --wood: #b87937;
  --wood-dark: #70421c;
  --shadow-soft: rgba(23, 50, 77, 0.16);
  --animal-color: #f59e0b;
  --animal-light: #fef3c7;
  --zip-progress: 0;
  --zip-percent: 0%;
  --zip-open-width: 34px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  user-select: none;
  background: #dff4df;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next Rounded Std", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  position: fixed;
  inset: 0;
}

button {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.app {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(250, 204, 21, 0.24), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(167, 221, 255, 0.42), transparent 24%),
    linear-gradient(180deg, #fff7e8 0%, #eef9e9 54%, #b8e4ae 100%);
}

.app::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -7%;
  height: 24%;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.45), transparent 18%),
    linear-gradient(180deg, #a7df99, #78c87c);
  pointer-events: none;
}

.screen {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  min-height: 100svh;
  padding: max(24px, calc(var(--safe-top) + 18px)) clamp(16px, 4vw, 30px) max(18px, calc(var(--safe-bottom) + 16px));
}

.screen.is-active {
  display: flex;
}

.sound-control-slot {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
}

.sound-control-slot-home {
  position: absolute;
  top: max(12px, calc(var(--safe-top) + 8px));
  left: 14px;
}

.sound-control-slot-header {
  width: 52px;
  height: 52px;
  justify-self: end;
}

.sound-tab {
  min-width: 124px;
  min-height: 44px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 0 14px;
  background:
    url("./images/ui/sound-button.png") center / 100% 100% no-repeat,
    linear-gradient(180deg, #fffef8, #ffefc7);
  color: #3f2b1f;
  font-size: 14px;
  font-weight: 1000;
  box-shadow: 0 12px 24px rgba(23, 50, 77, 0.16), inset 0 -4px 0 rgba(23, 50, 77, 0.1);
  cursor: pointer;
  touch-action: manipulation;
}

.sound-tab[data-variant="icon"] {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
}

.sound-tab-light {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16), 0 0 12px rgba(34, 197, 94, 0.55);
}

.sound-tab-icon {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: center / 24px 24px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233f2b1f' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M16 8.5c1 .9 1.5 2.1 1.5 3.5S17 14.6 16 15.5'/%3E%3Cpath d='M18.5 6c1.8 1.6 2.8 3.6 2.8 6s-1 4.4-2.8 6'/%3E%3C/svg%3E");
}

.sound-tab-icon::before {
  content: none;
}

.sound-tab-icon::after {
  content: none;
}

.sound-tab.is-muted .sound-tab-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233f2b1f' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9H4z'/%3E%3Cpath d='M20 9l-6 6'/%3E%3Cpath d='M14 9l6 6'/%3E%3C/svg%3E");
}

.sound-tab[data-variant="icon"] .sound-tab-light {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 10px;
  height: 10px;
}

.sound-tab[data-variant="icon"] [data-sound-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sound-tab.is-muted .sound-tab-light {
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.18);
}

.sound-tab.needs-sound {
  animation: sound-tab-pulse 1.2s ease-in-out infinite;
}

.sound-tab.needs-sound .sound-tab-light {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2), 0 0 14px rgba(245, 158, 11, 0.68);
}

.parent-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: max(24px, calc(var(--safe-top) + 18px)) 20px max(24px, calc(var(--safe-bottom) + 18px));
  background: rgba(23, 50, 77, 0.34);
  backdrop-filter: blur(10px);
}

.parent-sheet[hidden] {
  display: none;
}

.parent-sheet-panel {
  position: relative;
  width: min(92vw, 420px);
  padding: 26px 24px 24px;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px;
  background: linear-gradient(180deg, #fffef8, #fff1ca);
  box-shadow: 0 24px 54px rgba(23, 50, 77, 0.26);
  text-align: left;
}

.parent-sheet-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 7vw, 38px);
}

.parent-sheet-panel p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
}

.parent-gate-question {
  min-height: 60px;
  display: grid;
  place-items: center;
  margin: 12px 0 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 1000;
}

.parent-gate-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.parent-gate-choice {
  min-height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background: linear-gradient(180deg, #dff7ff, #93d9f7);
  color: var(--ink);
  font-size: clamp(26px, 8vw, 38px);
  font-weight: 1000;
  box-shadow: inset 0 -5px 0 rgba(23, 50, 77, 0.12), 0 10px 18px rgba(23, 50, 77, 0.14);
}

.parent-gate-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: #8a4b18;
  font-weight: 900;
  text-align: center;
}

.parent-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: #fffef8;
  color: var(--ink);
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(23, 50, 77, 0.14);
}

.parent-sheet-links {
  display: grid;
  gap: 12px;
}

.parent-sheet-links a {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #fef3c7, #facc15);
  color: #3f2b1f;
  font-weight: 1000;
  text-decoration: none;
  box-shadow: inset 0 -5px 0 rgba(112, 66, 28, 0.15), 0 10px 18px rgba(23, 50, 77, 0.14);
}

.home-screen {
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: clamp(9px, 2.2vh, 18px);
  text-align: center;
}

.brand-lockup {
  display: grid;
  gap: 4px;
  width: min(92vw, 520px);
  margin-top: 0;
  padding: clamp(13px, 3.4vw, 20px) clamp(20px, 6vw, 34px) clamp(15px, 3.8vw, 22px);
  border: 4px solid rgba(255, 244, 205, 0.72);
  border-radius: clamp(24px, 7vw, 38px);
  background:
    url("./images/prompts/wood-sign.png") center / 100% 100% no-repeat,
    radial-gradient(ellipse at 32% 8%, rgba(255, 235, 170, 0.26), transparent 36%),
    linear-gradient(180deg, #c98942, var(--wood) 48%, var(--wood-dark));
  box-shadow:
    0 18px 32px rgba(91, 54, 20, 0.2),
    inset 0 5px 0 rgba(255, 240, 190, 0.28),
    inset 0 -8px 0 rgba(66, 38, 15, 0.18);
}

.eyebrow {
  margin: 0;
  color: #fff4c7;
  font-size: clamp(17px, 4.5vw, 24px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(74, 44, 18, 0.26);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(44px, 12vw, 76px);
  line-height: 0.94;
  font-weight: 1000;
  color: #fffef8;
  text-shadow: 0 5px 0 rgba(88, 51, 18, 0.24);
}

h2 {
  font-size: clamp(30px, 8vw, 48px);
  line-height: 1;
  font-weight: 1000;
}

.corner-button,
.icon-button,
.zoo-link {
  border: 0;
  color: var(--ink);
  background: rgba(255, 254, 248, 0.72);
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(23, 50, 77, 0.14), inset 0 -3px 0 rgba(23, 50, 77, 0.08);
}

.corner-button {
  position: absolute;
  top: max(12px, calc(var(--safe-top) + 8px));
  right: 14px;
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 1000;
}

.settings-button {
  background:
    url("./images/ui/settings-button.png") center / 100% 100% no-repeat,
    linear-gradient(180deg, #fffef8, #ffefc7);
}

.settings-button span {
  display: none;
}

.mode-selector {
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2.4vw, 14px);
  width: min(92vw, 520px);
}

.mode-card {
  position: relative;
  min-height: clamp(132px, 31vw, 168px);
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: clamp(24px, 6vw, 34px);
  padding: clamp(10px, 2.7vw, 14px) clamp(8px, 2.6vw, 16px) clamp(12px, 3vw, 17px);
  color: var(--ink);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.64), transparent 30%),
    linear-gradient(180deg, #fffef8, #ffefc7);
  box-shadow: 0 16px 28px rgba(23, 50, 77, 0.14), inset 0 -6px 0 rgba(23, 50, 77, 0.08);
  cursor: pointer;
  touch-action: manipulation;
  display: grid;
  align-content: center;
  justify-items: center;
  grid-template-rows: minmax(62px, 1fr) auto auto;
  gap: 6px;
  overflow: hidden;
}

.mode-card::before {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.mode-card-title,
.mode-card-copy,
.mode-card-friends {
  position: relative;
  z-index: 1;
}

.mode-card-friends {
  width: min(100%, 174px);
  height: clamp(66px, 16vw, 86px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 3px;
}

.mode-card-friends img {
  width: clamp(48px, 12vw, 68px);
  height: clamp(58px, 15vw, 82px);
  object-fit: contain;
  margin: 0 -10px;
  filter: drop-shadow(0 9px 9px rgba(23, 50, 77, 0.18));
  pointer-events: none;
  user-select: none;
}

.mode-card-friends img:nth-child(2) {
  z-index: 2;
  transform: translateY(-4px) scale(1.08);
}

.mode-card-title {
  font-size: clamp(18px, 4.8vw, 26px);
  font-weight: 1000;
  line-height: 1;
}

.mode-card-copy {
  max-width: 12em;
  color: #426178;
  font-size: clamp(12px, 3.1vw, 15px);
  font-weight: 850;
  line-height: 1.1;
}

.mode-card-zoo {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.66), transparent 30%),
    linear-gradient(180deg, #fffef8, #dff6c9);
}

.mode-card-dino {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.66), transparent 30%),
    linear-gradient(180deg, #fffef8, #dbeafe);
}

.mode-card.is-selected {
  border-color: rgba(255, 244, 205, 0.94);
  box-shadow:
    0 18px 32px rgba(23, 50, 77, 0.18),
    0 0 0 5px rgba(250, 204, 21, 0.3),
    inset 0 -6px 0 rgba(23, 50, 77, 0.08);
  transform: translateY(-2px);
}

.home-pouch {
  position: relative;
  --pouch-asset: url("./images/ui/zipper-pouch-closed.png");
  width: min(78vw, 380px);
  aspect-ratio: 0.92;
  border: 0;
  border-radius: clamp(44px, 12vw, 70px);
  background:
    var(--pouch-asset) center / 100% 100% no-repeat,
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.7), transparent 20%),
    linear-gradient(145deg, #f6c56a 0%, #f59e0b 58%, #dc7b18 100%);
  box-shadow:
    0 28px 54px rgba(128, 79, 21, 0.24),
    inset 0 -14px 0 rgba(132, 75, 16, 0.16),
    inset 0 8px 0 rgba(255, 255, 255, 0.32);
  cursor: pointer;
  touch-action: manipulation;
  isolation: isolate;
  transform: translateZ(0);
}

.home-pouch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 19%;
  width: clamp(26px, 8vw, 44px);
  border-radius: 999px;
  transform: translateX(-50%);
  background:
    repeating-linear-gradient(180deg, #fef3c7 0 8px, #9a5b18 8px 13px),
    linear-gradient(180deg, #fff7ad, #b45309);
  box-shadow: 0 0 0 8px rgba(91, 54, 20, 0.16);
  opacity: 0;
}

.home-zipper-pull {
  position: absolute;
  left: 50%;
  top: 42%;
  width: clamp(68px, 17vw, 92px);
  height: clamp(82px, 21vw, 112px);
  border-radius: 34px;
  transform: translateX(-50%);
  background:
    url("./images/ui/zipper-pull.png") center / 100% 100% no-repeat,
    linear-gradient(180deg, #fff7ad, #f59e0b);
  box-shadow: 0 16px 24px rgba(101, 63, 18, 0.24), inset 0 -6px 0 rgba(120, 74, 20, 0.18);
  animation: pull-idle 1.55s ease-in-out infinite;
}

.home-zipper-pull::before {
  content: "";
  position: absolute;
  inset: 14px 17px auto;
  height: 25px;
  border: 7px solid #7c4a18;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.peek {
  position: absolute;
  z-index: 1;
  top: 7%;
  width: clamp(76px, 21vw, 104px);
  height: clamp(76px, 21vw, 104px);
  border-radius: 50%;
  border: 4px solid rgba(255, 254, 248, 0.74);
  background: rgba(255, 254, 248, 0.72) center 38% / 138% auto no-repeat;
  box-shadow: inset 0 -8px 0 rgba(23, 50, 77, 0.08), 0 14px 22px rgba(23, 50, 77, 0.12);
  overflow: hidden;
}

.peek::before,
.peek::after {
  content: none;
}

.peek-left {
  left: 8%;
  background-image: url("./images/animals/lion.png");
  transform: rotate(-12deg);
}

.peek-right {
  right: 8%;
  background-image: url("./images/animals/monkey.png");
  transform: rotate(12deg);
}

.home-pouch[data-active-mode="dino"] .peek-left {
  background-image: url("./images/animals/dino-triceratops.png");
}

.home-pouch[data-active-mode="dino"] .peek-right {
  background-image: url("./images/animals/dino-baby-saurus.png?v=baby-dino-v28");
}

.pouch-label {
  position: absolute;
  left: 50%;
  bottom: 11%;
  min-width: 64%;
  padding: 13px 22px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 254, 248, 0.92);
  color: #7c4a18;
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(101, 63, 18, 0.16);
}

.home-actions {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: min(92vw, 480px);
}

.primary-action,
.secondary-action {
  min-height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0 24px;
  font-size: clamp(18px, 4.5vw, 24px);
  font-weight: 1000;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 14px 24px rgba(91, 54, 20, 0.16), inset 0 -5px 0 rgba(91, 54, 20, 0.12);
}

.primary-action {
  color: #3f2b1f;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, #fff3b0, #facc15 58%, #f59e0b);
}

.secondary-action {
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(180deg, #fffef8, #fdecc8 58%, #f4d291);
}

.play-screen {
  flex-direction: column;
  gap: 12px;
  padding-top: max(86px, calc(var(--safe-top) + 22px));
}

.top-bar,
.zoo-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto 52px;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.icon-button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 34px;
  font-weight: 1000;
  line-height: 1;
}

#homeButton {
  background:
    url("./images/ui/home-button.png") center / 100% 100% no-repeat,
    linear-gradient(180deg, #fffef8, #ffefc7);
}

#homeButton span {
  display: none;
}

.zoo-link {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 17px;
  font-size: 16px;
  font-weight: 1000;
}

.progress-dots {
  display: flex;
  justify-content: center;
  align-content: center;
  flex-wrap: wrap;
  gap: clamp(3px, 1vw, 8px);
  max-width: min(56vw, 400px);
}

.progress-dot {
  width: clamp(8px, 2.2vw, 16px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 254, 248, 0.78);
  box-shadow: inset 0 0 0 2px rgba(23, 50, 77, 0.08);
}

.progress-dot.is-found {
  background: var(--dot-color);
}

.progress-dot.is-current {
  transform: scale(1.3);
  box-shadow: 0 0 0 3px rgba(255, 254, 248, 0.86), 0 7px 12px rgba(23, 50, 77, 0.14);
}

.reveal-stage {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  justify-items: center;
  align-items: center;
  gap: clamp(8px, 2vh, 16px);
  flex: 1;
  width: 100%;
  min-height: 0;
}

.prompt-bubble {
  position: relative;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  background:
    url("./images/prompts/speech-bubble.png") center / 100% 100% no-repeat,
    rgba(255, 254, 248, 0.82);
  border: 3px solid rgba(255, 255, 255, 0.72);
  color: #32536b;
  font-size: clamp(18px, 4.5vw, 27px);
  font-weight: 1000;
  box-shadow: 0 12px 26px rgba(23, 50, 77, 0.12);
}

.prompt-bubble.is-reward {
  min-height: 48px;
  padding: 9px 22px;
  color: #5b3412;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, #fffbe8, #ffd86c 62%, #f4b63d);
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 16px 28px rgba(95, 65, 23, 0.18),
    inset 0 -5px 0 rgba(112, 66, 28, 0.12);
  transform-origin: center;
  animation: reward-badge-pop 520ms cubic-bezier(0.19, 1, 0.22, 1);
}

.prompt-bubble.is-reward::before,
.prompt-bubble.is-reward::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: #fff3a6;
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 68% 56%, 82% 100%, 50% 72%, 18% 100%, 32% 56%, 0 35%, 38% 35%);
  filter: drop-shadow(0 3px 5px rgba(95, 65, 23, 0.16));
  animation: reward-star-pulse 1.4s ease-in-out infinite;
}

.prompt-bubble.is-reward::before {
  left: -10px;
  transform: translateY(-50%) rotate(-16deg);
}

.prompt-bubble.is-reward::after {
  right: -10px;
  transform: translateY(-50%) rotate(16deg);
  animation-delay: 180ms;
}

.zoo-pouch {
  position: relative;
  --pouch-asset: url("./images/ui/zipper-pouch-closed.png");
  width: min(84vw, 470px);
  max-height: min(48svh, 500px);
  aspect-ratio: 0.9;
  border-radius: clamp(40px, 12vw, 72px);
  background:
    var(--pouch-asset) center / 100% 100% no-repeat,
    radial-gradient(circle at 44% 18%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(145deg, #ffd47a 0%, #f4a037 54%, #d77a22 100%);
  box-shadow:
    0 26px 56px rgba(95, 65, 23, 0.23),
    inset 0 -18px 0 rgba(92, 57, 20, 0.14),
    inset 0 8px 0 rgba(255, 255, 255, 0.3);
  overflow: visible;
  isolation: isolate;
  transform: translateZ(0);
}

.zoo-pouch.is-opening {
  --pouch-asset: url("./images/ui/zipper-pouch-opening.png");
}

.zoo-pouch.is-open {
  --pouch-asset: url("./images/ui/zipper-pouch-open.png");
}

.pouch-pocket {
  position: absolute;
  inset: 9%;
  border-radius: clamp(34px, 10vw, 62px);
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 255, 255, 0.26), transparent 26%),
    linear-gradient(180deg, #91591e 0%, #6f471f 45%, #4c321e 100%);
  clip-path: inset(0 0 calc(100% - var(--zip-percent)) 0 round 44px);
  opacity: 0;
  box-shadow: inset 0 24px 36px rgba(0, 0, 0, 0.25);
}

.pouch-glow {
  position: absolute;
  left: 50%;
  top: 12%;
  z-index: 1;
  width: calc(40px + var(--zip-progress) * 220px);
  height: calc(40px + var(--zip-progress) * 220px);
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.76), rgba(250, 204, 21, 0.28) 42%, transparent 72%);
  opacity: calc(var(--zip-progress) * 0.56);
  filter: blur(2px);
}

.zipper-track {
  position: absolute;
  left: 50%;
  top: 11%;
  bottom: 17%;
  z-index: 6;
  width: clamp(64px, 18vw, 100px);
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}

.zipper-opening {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--zip-open-width);
  height: var(--zip-percent);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #382514, #68421b);
  box-shadow: inset 0 14px 24px rgba(0, 0, 0, 0.32);
}

.zipper-teeth {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 13px;
  border-radius: 999px;
  background: repeating-linear-gradient(180deg, #fff7ad 0 8px, #a16207 8px 13px);
  box-shadow: 0 0 0 4px rgba(120, 74, 20, 0.12);
}

.zipper-teeth-left {
  right: calc(50% + var(--zip-progress) * 56px);
}

.zipper-teeth-right {
  left: calc(50% + var(--zip-progress) * 56px);
}

.zipper-pull {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: calc(11% + var(--zip-progress) * 70%);
  width: clamp(82px, 22vw, 112px);
  height: clamp(96px, 25vw, 136px);
  border: 0;
  border-radius: 36px;
  transform: translate(-50%, -20%);
  background:
    url("./images/ui/zipper-pull.png") center / 100% 100% no-repeat,
    linear-gradient(180deg, #fff7ad, #f59e0b);
  box-shadow: 0 18px 26px rgba(77, 47, 19, 0.22), inset 0 -8px 0 rgba(92, 57, 20, 0.16);
  cursor: grab;
  touch-action: none;
  animation: pull-idle 1.7s ease-in-out infinite;
  transition: opacity 220ms ease, transform 220ms ease;
}

.zipper-pull:active {
  cursor: grabbing;
  animation: none;
  transform: translate(-50%, -20%) scale(1.04);
}

.zipper-face::before,
.zipper-face::after {
  content: "";
  position: absolute;
  top: 42%;
  width: 10px;
  height: 13px;
  border-radius: 50%;
  background: #55330f;
}

.zipper-face::before {
  left: 34%;
}

.zipper-face::after {
  right: 34%;
}

.zipper-face {
  position: absolute;
  inset: 0;
}

.zipper-face::selection {
  background: transparent;
}

.zipper-face span {
  display: none;
}

.zipper-pull::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 13px;
  width: 40%;
  height: 24px;
  border: 7px solid #7c4a18;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}

.zipper-pull::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 60%;
  width: 28px;
  height: 12px;
  border: 5px solid #55330f;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.home-zipper-pull::before,
.zipper-pull::before,
.zipper-pull::after,
.zipper-face::before,
.zipper-face::after {
  display: none;
}

.has-animal .zipper-pull {
  opacity: 0;
  transform: translate(-50%, -20%) scale(0.82);
  pointer-events: none;
}

.animal-reveal {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: 40%;
  width: min(76vw, 370px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
}

.has-animal .animal-reveal {
  animation: animal-pop 620ms cubic-bezier(0.16, 1.2, 0.36, 1) forwards;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.animal-reveal.react {
  animation: animal-react 620ms ease both;
  opacity: 1;
}

.has-animal .animal-reveal.is-celebrating {
  animation: animal-celebrate 820ms cubic-bezier(0.22, 0.9, 0.32, 1.18) both;
  opacity: 1;
}

.animal-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 22px rgba(23, 50, 77, 0.2));
}

.animal-art img {
  max-width: 112%;
  max-height: 112%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.animal-art-reveal.animal-key-lion img,
.animal-art-reveal.animal-key-monkey img,
.animal-art-reveal.animal-key-elephant img {
  max-width: 96%;
  max-height: 96%;
}

.animal-art-reveal.animal-key-bear img {
  max-width: 108%;
  max-height: 108%;
}

.animal-art-card {
  width: 100%;
  height: 100%;
}

.animal-name-pill {
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  background: rgba(255, 254, 248, 0.92);
  border: 3px solid rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-size: clamp(18px, 4.8vw, 27px);
  font-weight: 1000;
  box-shadow: 0 12px 24px rgba(23, 50, 77, 0.13);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.01em;
  max-width: min(86vw, 440px);
  line-height: 1;
  white-space: normal;
}

.animal-name-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px) scale(0.62) rotate(-7deg);
  animation: animal-letter-pop 620ms cubic-bezier(0.16, 1, 0.3, 1) var(--letter-delay, 0ms) forwards;
  will-change: transform, opacity;
}

.animal-name-letter-wave {
  display: inline-block;
  animation: animal-letter-wave 1.35s ease-in-out calc(var(--letter-delay, 0ms) + 660ms) infinite;
  will-change: transform, opacity;
}

.zoo-screen {
  z-index: 6;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(circle at 76% 14%, rgba(250, 204, 21, 0.26), transparent 23%),
    linear-gradient(180deg, #fff7e8, #e8f7dd 68%, #acd99d);
}

.zoo-header {
  grid-template-columns: 54px minmax(0, 1fr) 52px;
  justify-items: start;
}

.zoo-header .eyebrow {
  color: #47735b;
  text-shadow: none;
}

.collection-hint {
  position: relative;
  z-index: 3;
  align-self: center;
  margin: 4px 0 0;
  min-height: 36px;
  padding: 7px 18px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.86), transparent 28%),
    linear-gradient(180deg, #fffef8, #ffe7a6);
  color: #5b3412;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 1000;
  line-height: 1.05;
  box-shadow: 0 10px 20px rgba(95, 65, 23, 0.12), inset 0 -4px 0 rgba(112, 66, 28, 0.08);
}

.zoo-grid {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 3vw, 18px);
  align-content: start;
  overflow-y: auto;
  padding: clamp(14px, 3.5vw, 24px) 2px max(24px, var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.zoo-card {
  position: relative;
  overflow: visible;
  min-height: clamp(172px, 38vw, 240px);
  border: 3px solid rgba(255, 255, 255, 0.74);
  border-radius: 32px;
  padding: 16px 12px 13px;
  background:
    url("./images/cards/animal-card.png") center / 100% 100% no-repeat,
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.62), transparent 30%),
    linear-gradient(180deg, #fffef8, var(--animal-light));
  box-shadow: 0 18px 32px rgba(23, 50, 77, 0.15), inset 0 -7px 0 rgba(23, 50, 77, 0.08);
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  justify-items: center;
  cursor: pointer;
  touch-action: manipulation;
  transform-origin: center bottom;
}

.zoo-card-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1.15;
  transform-origin: center bottom;
}

.zoo-card .animal-art img {
  max-width: 96%;
  max-height: 96%;
}

.zoo-card .animal-key-lion img,
.zoo-card .animal-key-monkey img,
.zoo-card .animal-key-elephant img {
  max-width: 88%;
  max-height: 88%;
}

.zoo-card .animal-key-bear img {
  max-width: 98%;
  max-height: 98%;
}

.zoo-card-name {
  position: relative;
  z-index: 2;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 254, 248, 0.84);
  color: var(--ink);
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 1000;
}

.zoo-card-feedback {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 12px;
  max-width: calc(100% - 22px);
  min-height: 34px;
  padding: 7px 13px;
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(180deg, #fffbe8, #ffd86c 62%, #f4b63d);
  color: #5b3412;
  font-size: clamp(15px, 3.8vw, 20px);
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 20px rgba(95, 65, 23, 0.18), inset 0 -4px 0 rgba(112, 66, 28, 0.12);
  pointer-events: none;
  transform: translate(-50%, -8px) scale(0.82);
  opacity: 0;
}

.zoo-card-sparkles {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 34%;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.zoo-card-sparkles span {
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd86c;
  box-shadow: 0 0 0 3px rgba(255, 254, 248, 0.62);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

.zoo-card.is-reacting {
  animation: collection-card-pop 540ms cubic-bezier(0.19, 1, 0.22, 1);
}

.zoo-card.is-reacting .zoo-card-art {
  animation: collection-animal-wiggle 620ms cubic-bezier(0.19, 1, 0.22, 1);
}

.zoo-card.is-reacting .zoo-card-feedback {
  animation: collection-feedback-pop 920ms ease-out forwards;
}

.zoo-card.is-reacting .zoo-card-sparkles span {
  animation: collection-sparkle 780ms ease-out var(--spark-delay, 0ms) forwards;
}

.zoo-card.is-locked {
  filter: saturate(0.25);
  opacity: 0.86;
}

.locked-animal {
  display: grid;
  place-items: center;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 40%;
  background: linear-gradient(180deg, rgba(23, 50, 77, 0.16), rgba(23, 50, 77, 0.08));
}

.locked-animal span {
  width: 30%;
  height: 50%;
  border-radius: 999px;
  background: rgba(255, 254, 248, 0.7);
}

.fallback-animal {
  position: relative;
  width: min(84%, 260px);
  aspect-ratio: 0.82;
}

.fallback-animal .head,
.fallback-animal .body,
.fallback-animal .neck,
.fallback-animal .ear,
.fallback-animal .snout,
.fallback-animal .beak,
.fallback-animal .spot {
  position: absolute;
  display: block;
}

.fallback-animal .body {
  left: 23%;
  right: 23%;
  bottom: 1%;
  height: 42%;
  border-radius: 45% 45% 32% 32%;
  background: linear-gradient(180deg, var(--animal-light), var(--animal-color));
  box-shadow: inset 0 -8px 0 rgba(23, 50, 77, 0.1);
}

.fallback-animal .head {
  left: 11%;
  right: 11%;
  top: 10%;
  height: 58%;
  border-radius: 48% 48% 42% 42%;
  background: linear-gradient(180deg, #fffef8 0%, var(--animal-light) 38%, var(--animal-color) 100%);
  box-shadow: inset 0 -8px 0 rgba(23, 50, 77, 0.08);
}

.fallback-animal .ear {
  top: 14%;
  width: 22%;
  height: 22%;
  border-radius: 50%;
  background: var(--animal-color);
}

.fallback-animal .ear-left {
  left: 5%;
}

.fallback-animal .ear-right {
  right: 5%;
}

.fallback-animal .eye {
  top: 43%;
  width: 11%;
  height: 14%;
  border-radius: 50%;
  background: #1f2937;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.7);
}

.fallback-animal .eye-left {
  left: 34%;
}

.fallback-animal .eye-right {
  right: 34%;
}

.fallback-animal .snout {
  left: 35%;
  top: 58%;
  width: 30%;
  height: 22%;
  border-radius: 50%;
  background: rgba(255, 254, 248, 0.86);
}

.fallback-animal .snout::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 27%;
  width: 32%;
  height: 27%;
  border-radius: 50%;
  transform: translateX(-50%);
  background: #49311f;
}

.fallback-animal .beak {
  display: none;
}

.fallback-duck .head {
  background: linear-gradient(180deg, #fff7ad, #facc15);
}

.fallback-duck .beak,
.fallback-penguin .beak {
  display: block;
  left: 38%;
  top: 58%;
  width: 24%;
  height: 13%;
  border-radius: 999px 999px 50% 50%;
  background: #f97316;
}

.fallback-duck .snout,
.fallback-penguin .snout {
  display: none;
}

.fallback-penguin .head {
  background:
    radial-gradient(ellipse at 50% 66%, #fffef8 0 31%, transparent 32%),
    linear-gradient(180deg, #334155, #0f172a);
}

.fallback-penguin .body {
  background:
    radial-gradient(ellipse at 50% 36%, #fffef8 0 38%, transparent 39%),
    linear-gradient(180deg, #475569, #0f172a);
}

.fallback-cow .spot {
  border-radius: 50%;
  background: #334155;
}

.fallback-cow .spot-one {
  left: 17%;
  top: 24%;
  width: 24%;
  height: 20%;
}

.fallback-cow .spot-two {
  right: 20%;
  top: 63%;
  width: 18%;
  height: 15%;
}

.fallback-giraffe .neck {
  left: 42%;
  top: 48%;
  width: 16%;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(180deg, #facc15, #eab308);
}

.fallback-giraffe .head {
  top: 2%;
  height: 50%;
  border-radius: 45%;
  background: linear-gradient(180deg, #fef3c7, #eab308);
}

.fallback-giraffe .spot {
  border-radius: 50%;
  background: rgba(120, 53, 15, 0.52);
}

.fallback-giraffe .spot-one {
  left: 25%;
  top: 28%;
  width: 14%;
  height: 12%;
}

.fallback-giraffe .spot-two {
  right: 25%;
  top: 54%;
  width: 15%;
  height: 13%;
}

.fallback-panda .head {
  background:
    radial-gradient(circle at 35% 44%, #111827 0 11%, transparent 12%),
    radial-gradient(circle at 65% 44%, #111827 0 11%, transparent 12%),
    linear-gradient(180deg, #fffef8, #e2e8f0);
}

.fallback-panda .body {
  background:
    radial-gradient(ellipse at 50% 40%, #fffef8 0 38%, transparent 39%),
    linear-gradient(180deg, #475569, #111827);
}

.fallback-panda .ear {
  background: #111827;
}

.fallback-panda .snout {
  background: #fffef8;
}

.fallback-owl .head {
  top: 8%;
  height: 58%;
  border-radius: 48% 48% 54% 54%;
  background:
    radial-gradient(circle at 35% 43%, #fffef8 0 16%, transparent 17%),
    radial-gradient(circle at 65% 43%, #fffef8 0 16%, transparent 17%),
    linear-gradient(180deg, #c4b5fd, #7c3aed);
}

.fallback-owl .ear {
  top: 9%;
  width: 19%;
  height: 22%;
  border-radius: 70% 18% 70% 18%;
  background: #7c3aed;
}

.fallback-owl .ear-left {
  left: 16%;
  transform: rotate(-28deg);
}

.fallback-owl .ear-right {
  right: 16%;
  transform: rotate(28deg);
}

.fallback-owl .beak {
  display: block;
  left: 45%;
  top: 56%;
  width: 10%;
  height: 12%;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  background: #facc15;
}

.fallback-owl .snout {
  display: none;
}

.fallback-owl .body {
  border-radius: 50% 50% 34% 34%;
  background: linear-gradient(180deg, #ddd6fe, #8b5cf6);
}

.sparkle-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sparkle-color);
  animation: sparkle-pop 820ms ease-out forwards;
}

.reward-burst {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(82vw, 430px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(0.35);
  opacity: 0;
  background: url("./images/rewards/star-burst.png") center / contain no-repeat;
  animation: reward-burst-pop 980ms ease-out forwards;
}

@keyframes pull-idle {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 8px;
  }
}

@keyframes sound-tab-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@keyframes reward-badge-pop {
  0% {
    opacity: 0;
    transform: scale(0.68) rotate(-3deg);
  }
  68% {
    opacity: 1;
    transform: scale(1.08) rotate(1deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes collection-card-pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  38% {
    transform: translateY(-7px) scale(1.035);
  }
  68% {
    transform: translateY(2px) scale(0.995);
  }
}

@keyframes collection-animal-wiggle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  28% {
    transform: translateY(-10px) rotate(-4deg) scale(1.06);
  }
  58% {
    transform: translateY(-2px) rotate(4deg) scale(1.02);
  }
}

@keyframes collection-feedback-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, 4px) scale(0.72) rotate(-4deg);
  }
  22% {
    opacity: 1;
    transform: translate(-50%, -10px) scale(1.08) rotate(2deg);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -8px) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -18px) scale(0.92) rotate(0deg);
  }
}

@keyframes collection-sparkle {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--spark-x, 0px) - 50%), calc(var(--spark-y, 0px) - 50%)) scale(1.4);
  }
}

@keyframes reward-star-pulse {
  0%,
  100% {
    opacity: 0.78;
    scale: 0.88;
  }
  50% {
    opacity: 1;
    scale: 1.12;
  }
}

@keyframes animal-letter-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.62) rotate(-7deg);
  }
  58% {
    opacity: 1;
    transform: translateY(-9px) scale(1.2) rotate(4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes animal-letter-wave {
  0%,
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) scale(1.08) rotate(3deg);
  }
}

@keyframes animal-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.22) rotate(-4deg);
  }
  64% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animal-name-letter {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .animal-name-letter-wave {
    animation: none;
  }

  .has-animal .animal-reveal.is-celebrating {
    animation: none;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes animal-celebrate {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  24% {
    opacity: 1;
    transform: translate(-50%, -57%) scale(1.08) rotate(-3deg);
  }
  48% {
    opacity: 1;
    transform: translate(-50%, -49%) scale(1.03) rotate(3deg);
  }
  72% {
    opacity: 1;
    transform: translate(-50%, -54%) scale(1.06) rotate(-1deg);
  }
}

@keyframes animal-react {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  30% {
    opacity: 1;
    transform: translate(-50%, -54%) scale(1.08) rotate(-3deg);
  }
  62% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.02) rotate(3deg);
  }
}

@keyframes sparkle-pop {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1.5);
  }
}

@keyframes reward-burst-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.25) rotate(-8deg);
  }
  28% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1) rotate(4deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.2) rotate(12deg);
  }
}

@media (min-width: 720px) {
  .zoo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-height: 690px) {
  .brand-lockup {
    margin-top: 0;
  }

  .mode-card {
    min-height: 112px;
    padding-block: 10px;
  }

  .mode-card-copy {
    display: none;
  }

  .mode-card-friends {
    height: 58px;
  }

  .mode-card-friends img {
    width: 46px;
    height: 58px;
  }

  .home-pouch {
    width: min(70vw, 330px);
  }

  .zoo-pouch {
    width: min(64vw, 350px);
  }

  .animal-reveal {
    width: min(56vw, 280px);
  }

}

@media (max-width: 430px) {
  .home-actions {
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    flex: 1 1 100%;
  }

  .zoo-pouch {
    width: min(82vw, 360px);
  }
}
