:root {
  color-scheme: light;
  --ink: #15283b;
  --muted: #607184;
  --cream: #fffaf1;
  --paper: rgba(255, 255, 255, 0.76);
  --line: rgba(58, 77, 95, 0.12);
  --pink: #ff8fa8;
  --violet: #8875dc;
  --mint: #7ccbb3;
  --sun: #ffd36f;
  --shadow: 0 26px 70px rgba(69, 79, 95, 0.14);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  margin: 0;
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 3%, rgba(255, 199, 215, 0.62), transparent 26rem),
    radial-gradient(circle at 90% 11%, rgba(179, 224, 255, 0.66), transparent 28rem),
    linear-gradient(145deg, #fffaf4 0%, #f8f5ff 48%, #f2fbf8 100%);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(67, 63, 86, 0.07) 0.7px, transparent 0.7px);
  background-size: 9px 9px;
  content: "";
  pointer-events: none;
}

button,
select,
a {
  font: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html[data-kids-surface="hub"] body {
  min-height: 100vh;
  min-height: 100dvh;
}

html[data-kids-surface="game"] body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #f7efe8;
}

.kids-portal {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: max(42px, env(safe-area-inset-bottom));
}

.portal-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  width: min(1440px, calc(100% - 36px));
  min-height: 86px;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
  padding-top: max(12px, env(safe-area-inset-top));
}

.portal-back,
.portal-language select {
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 30px rgba(61, 74, 91, 0.09);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
}

.portal-back {
  display: inline-flex;
  width: fit-content;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portal-back span:first-child {
  font-size: 20px;
  line-height: 1;
}

.portal-brand {
  width: clamp(128px, 14vw, 184px);
  justify-self: center;
}

.portal-language {
  justify-self: end;
}

.portal-language select {
  min-width: 74px;
  min-height: 46px;
  padding: 0 32px 0 15px;
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.portal-back:hover,
.portal-back:focus-visible {
  box-shadow: 0 14px 36px rgba(61, 74, 91, 0.15);
  transform: translateY(-2px);
}

.portal-back:focus-visible,
.portal-language select:focus-visible,
.category-filter button:focus-visible,
.game-card:focus-visible,
.play-button:focus-visible,
.zoo-animal:focus-visible {
  outline: 4px solid rgba(117, 99, 211, 0.3);
  outline-offset: 3px;
}

.kids-portal main {
  width: min(1440px, calc(100% - 36px));
  margin: 0 auto;
}

.zoo-feature {
  position: relative;
  min-height: clamp(520px, 70vh, 760px);
  min-height: clamp(520px, 70dvh, 760px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: clamp(30px, 4vw, 58px);
  background: #9bd9cb;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.zoo-feature::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  content: "";
  pointer-events: none;
}

.zoo-feature__image {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.018);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.zoo-feature:hover .zoo-feature__image {
  transform: scale(1.045);
}

.zoo-feature__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 43, 51, 0.88) 0%, rgba(21, 43, 51, 0.65) 32%, rgba(21, 43, 51, 0.12) 67%, transparent 100%),
    linear-gradient(0deg, rgba(21, 43, 51, 0.38), transparent 55%);
}

.zoo-feature__copy {
  position: relative;
  z-index: 4;
  display: flex;
  width: min(610px, 52%);
  min-height: inherit;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 92px);
  color: #fff;
}

.feature-kicker,
.section-kicker,
.game-card__category {
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.feature-kicker::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #baf5c9;
  box-shadow: 0 0 0 6px rgba(186, 245, 201, 0.14);
  content: "";
}

.zoo-feature__logo {
  width: min(380px, 86%);
  margin: clamp(22px, 4vh, 40px) 0 12px;
  filter: drop-shadow(0 16px 34px rgba(15, 45, 48, 0.22));
}

.zoo-feature h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.zoo-feature p {
  max-width: 46ch;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 600;
  line-height: 1.58;
}

.feature-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 20px;
  margin-top: 30px;
}

.play-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 20px;
  padding: 0 18px 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(12, 34, 37, 0.22);
  color: #183a3a;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.play-button b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #84cfaa;
  color: #fff;
  font-size: 12px;
}

.play-button:hover {
  background: #fff;
  transform: translateY(-3px) scale(1.01);
}

.feature-note {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.zoo-habitat {
  position: absolute;
  z-index: 3;
  top: clamp(22px, 3vw, 42px);
  right: clamp(22px, 3vw, 42px);
  bottom: clamp(22px, 3vw, 42px);
  left: 52%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: clamp(24px, 3vw, 42px);
  background:
    linear-gradient(155deg, rgba(233, 251, 246, 0.18), rgba(39, 86, 77, 0.08)),
    rgba(10, 53, 54, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 24px 70px rgba(12, 52, 51, 0.16);
  backdrop-filter: blur(6px) saturate(1.15);
  -webkit-backdrop-filter: blur(6px) saturate(1.15);
  contain: layout paint;
  isolation: isolate;
}

.zoo-habitat::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 35%),
    radial-gradient(circle at 72% 65%, rgba(129, 226, 210, 0.2), transparent 34%);
  content: "";
  pointer-events: none;
}

.zoo-habitat__canvas,
.zoo-habitat__glow,
.zoo-habitat__animals {
  position: absolute;
  inset: 0;
}

.zoo-habitat__canvas {
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.zoo-habitat__glow {
  z-index: 1;
  background:
    radial-gradient(circle at 48% 34%, rgba(255, 251, 211, 0.22), transparent 20%),
    radial-gradient(circle at 16% 74%, rgba(167, 246, 207, 0.22), transparent 24%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.zoo-habitat__animals {
  z-index: 4;
  pointer-events: none;
}

.zoo-animal-slot {
  position: absolute;
  left: var(--animal-x);
  top: var(--animal-y);
  display: block;
  width: clamp(62px, 7.4vw, 94px);
  height: clamp(62px, 7.4vw, 94px);
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.zoo-animal {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 34% 46% 38% 44%;
  background: rgba(255, 255, 255, 0.17);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 14px 30px rgba(22, 64, 61, 0.18);
  color: #7185a0;
  cursor: pointer;
  place-items: center;
  transform-origin: 50% 88%;
  transition: opacity 180ms ease, filter 180ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.zoo-animal[data-zoo-animal="penguin"] { color: #263a4d; }
.zoo-animal[data-zoo-animal="capybara"] { color: #a66e50; }
.zoo-animal[data-zoo-animal="flamingo"] { color: #ec829e; }
.zoo-animal[data-zoo-animal="giraffe"] { color: #d5a747; }
.zoo-animal[data-zoo-animal="redpanda"] { color: #bd5d47; }

.zoo-animal.is-unlocked {
  animation: zoo-animal-breathe 4.8s ease-in-out var(--animal-delay) infinite;
}

.zoo-animal.is-unlocked:hover,
.zoo-animal.is-selected {
  z-index: 3;
  animation: none;
  background: rgba(255, 255, 255, 0.32);
  filter: saturate(1.08) brightness(1.05);
  transform: translateY(-6px) scale(1.08);
}

.zoo-animal.is-locked {
  color: #8d9a9e;
  filter: grayscale(0.72);
  opacity: 0.48;
}

.zoo-animal.is-locked:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.zoo-animal__halo {
  position: absolute;
  z-index: -1;
  width: 82%;
  height: 82%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 66%);
  filter: blur(5px);
}

.zoo-animal__art,
.zoo-animal__art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.zoo-animal__art svg {
  overflow: visible;
  fill: currentColor;
  filter: drop-shadow(0 7px 8px rgba(25, 65, 62, 0.2));
}

.animal-svg__light { fill: rgba(255, 249, 225, 0.82); }
.animal-svg__warm { fill: #f2b956; }
.animal-svg__dark { fill: #344354; }
.animal-svg__eye { fill: #172635; }
.animal-svg__stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.5;
}
.animal-svg__neck,
.animal-svg__tail { stroke-width: 9; }
.animal-svg__legs,
.animal-svg__feet { stroke-width: 3; }

.zoo-animal__lock {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: none;
  width: 23px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 7px;
  background: #586a72;
  box-shadow: 0 5px 12px rgba(20, 47, 49, 0.28);
}

.zoo-animal__lock i {
  position: absolute;
  bottom: 14px;
  left: 4px;
  width: 11px;
  height: 9px;
  border: 3px solid #586a72;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.zoo-animal.is-locked .zoo-animal__lock {
  display: block;
}

.zoo-entry-gate {
  position: absolute;
  z-index: 7;
  top: 14px;
  right: 14px;
  left: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  background: rgba(16, 54, 57, 0.44);
  box-shadow: 0 14px 34px rgba(12, 41, 44, 0.16);
  color: #fff;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.zoo-entry-gate__signal {
  width: 9px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(#c9ffbd, #58d7b1);
  box-shadow: 0 0 18px rgba(117, 245, 193, 0.72);
}

.zoo-entry-gate div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.zoo-entry-gate small {
  overflow: hidden;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zoo-entry-gate strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: clamp(11px, 1.15vw, 15px);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zoo-entry-gate__count {
  display: flex;
  min-width: 64px;
  align-items: flex-end;
  padding: 7px 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  flex-direction: column;
}

.zoo-entry-gate__count b {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.zoo-fact-card {
  position: absolute;
  z-index: 8;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 3px;
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: rgba(246, 253, 247, 0.84);
  box-shadow: 0 18px 45px rgba(19, 54, 53, 0.2);
  color: #234047;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.zoo-fact-card[hidden] {
  display: none;
}

.zoo-fact-card[data-locked="true"] {
  background: rgba(239, 244, 241, 0.82);
  color: #53656a;
}

.zoo-fact-card > small {
  color: #36876e;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.zoo-fact-card > strong {
  font-size: clamp(14px, 1.45vw, 19px);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.zoo-feature .zoo-fact-card p {
  max-width: none;
  margin: 2px 0 0;
  color: #53656a;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 650;
  line-height: 1.36;
}

.zoo-fact-card > span {
  margin-top: 3px;
  color: #65777b;
  font-size: 9px;
  font-weight: 800;
}

.zoo-feature .zoo-habitat__hint {
  position: absolute;
  z-index: 6;
  top: 82px;
  left: 17px;
  max-width: 27ch;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(20, 60, 59, 0.32);
  color: rgba(255, 255, 255, 0.82);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  pointer-events: none;
}

[data-habitat-static="true"] .zoo-animal.is-unlocked {
  animation: none;
}

@keyframes zoo-animal-breathe {
  0%, 100% { transform: translateY(0) rotate(-0.5deg); }
  50% { transform: translateY(-5px) rotate(0.5deg); }
}

.library-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 32px;
  padding: clamp(70px, 9vw, 130px) clamp(4px, 2vw, 22px) 34px;
}

.section-kicker {
  color: #7d69ce;
  font-size: 11px;
}

.library-intro h2 {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: clamp(36px, 5.5vw, 78px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-wrap: balance;
}

.library-intro p {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 600;
  line-height: 1.6;
}

.category-filter {
  display: flex;
  overflow-x: auto;
  gap: 9px;
  padding: 0 4px 24px;
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-filter button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 8px 24px rgba(67, 77, 94, 0.07);
  color: #536275;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.category-filter button.is-active {
  border-color: #2f3e54;
  background: #2f3e54;
  box-shadow: 0 14px 30px rgba(47, 62, 84, 0.2);
  color: #fff;
}

.game-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.game-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: clamp(26px, 2.8vw, 42px);
  background: var(--paper);
  box-shadow: 0 18px 52px rgba(65, 74, 92, 0.1);
  flex-direction: column;
  text-decoration: none;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 240ms ease, opacity 180ms ease;
}

.game-card[hidden] {
  display: none;
}

.game-card:hover {
  box-shadow: 0 30px 72px rgba(65, 74, 92, 0.16);
  transform: translateY(-7px);
}

.game-card__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 10px;
  border-radius: calc(clamp(26px, 2.8vw, 42px) - 8px);
  background: #ece8f7;
}

.game-card__art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(37, 41, 54, 0.16));
  content: "";
  pointer-events: none;
}

.game-card__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .game-card__art img {
  transform: scale(1.045);
}

.game-card__body {
  display: flex;
  min-height: 0;
  align-items: flex-start;
  flex: 1;
  flex-direction: column;
  padding: 15px clamp(22px, 2.4vw, 34px) clamp(24px, 3vw, 38px);
}

.game-card__category {
  color: #8876c9;
  font-size: 10px;
}

.game-card__logo {
  width: min(260px, 85%);
  height: 72px;
  margin: 13px 0 10px;
  object-fit: contain;
  object-position: left center;
}

.game-card__logo--story {
  height: 92px;
}

.game-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.58;
}

.game-card__action {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  padding-top: 22px;
  color: #26384c;
  font-size: 13px;
  font-weight: 900;
}

.game-card__action b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #eef0ff;
  color: #7563ce;
  transition: transform 180ms ease, background 180ms ease;
}

.game-card:hover .game-card__action b {
  background: #7563ce;
  color: #fff;
  transform: translateX(3px);
}

.game-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.game-card--wide .game-card__art {
  height: calc(100% - 20px);
  aspect-ratio: auto;
}

.game-card--wide .game-card__body {
  padding-top: clamp(32px, 5vw, 70px);
}

.portal-footer {
  display: flex;
  width: min(1440px, calc(100% - 36px));
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: clamp(70px, 9vw, 120px) auto 0;
  padding: 28px 4px 0;
  border-top: 1px solid var(--line);
}

.portal-footer img {
  width: 142px;
}

.portal-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.game-load-error {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 28px;
  background: #fff8f3;
  color: #24374b;
  text-align: center;
}

.game-load-error[hidden] {
  display: none;
}

.game-load-error a {
  color: #725fc7;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .game-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card--wide {
    grid-column: span 2;
  }

  .zoo-feature__copy {
    width: 52%;
    padding-inline: clamp(32px, 4.5vw, 54px);
  }

  .zoo-habitat {
    left: 52%;
  }
}

@media (max-width: 780px) {
  .portal-header,
  .kids-portal main,
  .portal-footer {
    width: min(100% - 22px, 1440px);
  }

  .portal-header {
    grid-template-columns: 1fr auto;
    min-height: 72px;
  }

  .portal-brand {
    position: absolute;
    left: 50%;
    width: 118px;
    transform: translateX(-50%);
  }

  .portal-back {
    width: 46px;
    padding: 0;
    justify-content: center;
  }

  .portal-back span:last-child {
    display: none;
  }

  .portal-language select {
    min-width: 66px;
  }

  .zoo-feature {
    min-height: 850px;
  }

  .zoo-feature__image {
    object-position: 64% 40%;
  }

  .zoo-feature__shade {
    background:
      linear-gradient(0deg, rgba(20, 47, 49, 0.93) 0%, rgba(20, 47, 49, 0.68) 38%, rgba(20, 47, 49, 0.04) 72%),
      linear-gradient(90deg, rgba(20, 47, 49, 0.3), transparent 60%);
  }

  .zoo-feature__copy {
    width: 100%;
    min-height: inherit;
    justify-content: flex-end;
    padding: 390px 26px 42px;
  }

  .zoo-habitat {
    top: 16px;
    right: 16px;
    bottom: auto;
    left: 16px;
    height: 350px;
  }

  .zoo-animal-slot {
    width: clamp(58px, 12vw, 82px);
    height: clamp(58px, 12vw, 82px);
  }

  .zoo-fact-card {
    min-height: 98px;
  }

  .zoo-feature__logo {
    width: min(330px, 82%);
    margin-top: 18px;
  }

  .zoo-feature h1 {
    max-width: 14ch;
    font-size: clamp(38px, 11vw, 58px);
  }

  .library-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 74px;
  }

  .game-card--wide {
    display: flex;
  }

  .game-card--wide .game-card__art {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .game-card--wide .game-card__body {
    padding-top: 15px;
  }
}

@media (max-width: 620px) {
  .game-library {
    grid-template-columns: 1fr;
  }

  .game-card,
  .game-card--wide {
    grid-column: auto;
    min-height: 500px;
  }

  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .zoo-entry-gate {
    min-height: 52px;
  }

  .zoo-feature .zoo-habitat__hint {
    display: none;
  }

  .zoo-fact-card {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 11px 13px;
  }
}

@media (max-width: 420px) {
  .zoo-feature {
    min-height: 820px;
    border-radius: 28px;
  }

  .zoo-feature__copy {
    padding-top: 354px;
    padding-inline: 22px;
  }

  .zoo-habitat {
    right: 10px;
    left: 10px;
    height: 320px;
    border-radius: 22px;
  }

  .zoo-animal-slot {
    width: 56px;
    height: 56px;
  }

  .zoo-entry-gate {
    top: 9px;
    right: 9px;
    left: 9px;
  }

  .zoo-entry-gate__count {
    min-width: 56px;
    padding-inline: 7px;
  }

  .zoo-fact-card {
    min-height: 92px;
  }

  .feature-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .library-intro h2 {
    font-size: 40px;
  }
}

@media (max-height: 700px) and (min-width: 781px) {
  .zoo-animal-slot {
    width: 62px;
    height: 62px;
  }

  .zoo-feature .zoo-habitat__hint {
    display: none;
  }

  .zoo-fact-card {
    min-height: 94px;
    padding-block: 10px;
  }
}

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