:root {
  color-scheme: dark;
  --bg: #071713;
  --panel: #10251d;
  --line: #345343;
  --text: #f1f7ef;
  --muted: #b9cbbf;
  --accent: #c9f58b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 system-ui, sans-serif; }
a { color: var(--accent); text-underline-offset: .25em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
p + p { margin-top: .85rem; }
.wrap { width: min(1080px, calc(100% - 2.5rem)); margin-inline: auto; }
.studio-masthead {
  background:
    linear-gradient(90deg, #081912 0%, #081912e8 35%, #081912b5 100%),
    url('/oozy/site/jungle.jpg') center 37% / cover;
  border-bottom: 1px solid #57724b;
  box-shadow: 0 1px 0 #020d09, 0 .5rem 1.7rem #020d0940;
  position: relative;
}
.site-header, .site-footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding-block: 1.15rem;
}
.site-header { padding-block: .7rem .58rem; }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-header nav {
  display: flex; align-items: center; gap: .15rem;
  padding: .2rem; border: 1px solid #49614b; border-radius: 2rem;
  background: #0b1d17c9; box-shadow: inset 0 1px #f5ffd70b;
}
.site-header nav a {
  padding: .4rem clamp(.6rem, 1.6vw, .95rem); border-radius: 2rem;
  color: #e9f4df; font-size: .9rem; font-weight: 650;
}
.site-header nav a:hover { background: #c9f58b19; color: var(--accent); }
.site-footer a:hover { text-decoration: underline; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: clamp(1.15rem, 3vw, 1.65rem); font-weight: 900;
  letter-spacing: -.045em; line-height: 1; white-space: nowrap;
}
.brand span {
  color: #fff2bb;
  text-shadow: 0 2px #3f2d14, 0 4px 10px #0008;
}
.brand img {
  width: clamp(3.6rem, 10vw, 5rem);
  filter: drop-shadow(0 3px 3px #020d09) drop-shadow(0 0 10px #ffcd4240);
}
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.studio-hero {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background: linear-gradient(0deg, var(--bg), transparent 55%),
    linear-gradient(90deg, #071713f0 8%, #071713b0 42%, #07171335 100%),
    url('/oozy/site/jungle.jpg') center 48% / cover;
}
h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1.03; letter-spacing: -.055em; }
.studio-showcase {
  display: grid; grid-template-columns: 1fr 1.12fr; align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}
.studio-intro h1 {
  font-size: clamp(3.1rem, 7.25vw, 6.2rem); color: #fff2bb;
  text-shadow: 0 3px #403017, 0 9px 26px #020d09;
}
.studio-intro p { max-width: 37ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
.studio-intro .studio-tagline {
  margin-top: .75rem; color: var(--text); font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1.2; font-weight: 750;
}
.studio-games {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem;
  min-width: 0;
}
.studio-fan {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; padding: .8rem .2rem 1.1rem;
  background: radial-gradient(ellipse at center, #4eba8340, transparent 68%);
}
.studio-preview {
  --tilt: 0deg;
  position: relative;
  flex: 0 1 clamp(3.6rem, 25%, 6.7rem);
  min-width: 0; margin-inline: -.36rem; padding: .25rem;
  border: 1px solid #80ad73; border-radius: clamp(.66rem, 2vw, 1.15rem);
  background: linear-gradient(150deg, #2a4835, #0d221b 68%);
  box-shadow: 0 .9rem 2rem #010b097f, inset 0 1px #efffcd35;
  color: #f1ffd8; text-decoration: none;
  transform-origin: center 84%;
  transform: rotate(var(--tilt));
  transition: transform .2s ease, border-color .2s ease;
}
.studio-preview:first-child { --tilt: -12deg; }
.studio-preview:nth-child(2) { --tilt: -4deg; }
.studio-preview:nth-child(3) { --tilt: 4deg; }
.studio-preview:nth-child(4) { --tilt: 12deg; }
.studio-preview:only-child { --tilt: 0deg; }
.studio-fan:has(> :nth-child(3):last-child) .studio-preview:nth-child(2) { --tilt: 0deg; }
.studio-fan:has(> :nth-child(3):last-child) .studio-preview:nth-child(3) { --tilt: 12deg; }
@media (min-width: 1001px) {
  .studio-fan:last-child:nth-child(odd) { grid-column: 1 / -1; width: min(100%, 18rem); justify-self: center; }
}
.studio-fan:has(> :nth-child(5)) .studio-preview { flex-basis: clamp(3.3rem, 18%, 5.5rem); }
.studio-fan:has(> :nth-child(5)) .studio-preview:nth-child(2) { --tilt: -6deg; }
.studio-fan:has(> :nth-child(5)) .studio-preview:nth-child(3) { --tilt: 0deg; }
.studio-fan:has(> :nth-child(5)) .studio-preview:nth-child(4) { --tilt: 6deg; }
.studio-fan:has(> :nth-child(5)) .studio-preview:nth-child(5) { --tilt: 12deg; }
.studio-preview:hover, .studio-preview:focus-visible {
  z-index: 1; border-color: #e4ffae; transform: translateY(-.35rem) rotate(0);
}
.studio-preview img { width: 100%; aspect-ratio: 6 / 13; object-fit: cover; border-radius: clamp(.4rem, 1.55vw, .85rem); }
.studio-preview > span {
  display: block; padding: .36rem .05rem .05rem; text-align: center;
  font-size: clamp(.65rem, 1.05vw, .79rem); font-weight: 800;
}
.studio-preview span span { display: none; }
@media (min-width: 651px) and (max-width: 1000px) {
  .studio-games { grid-template-columns: 1fr; }
  .studio-preview { flex-basis: min(20%, 5.1rem); }
}
.intro { font-size: clamp(1.2rem, 3vw, 1.65rem); line-height: 1.35; }
.game-switcher { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0 0 .9rem; }
.game-card {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .36rem .8rem .36rem .4rem; border: 1px solid #486a4e; border-radius: .8rem;
  background: linear-gradient(160deg, #233e2c, #10271e);
  box-shadow: inset 0 1px #e4ffbd20, 0 3px 6px #020d0980;
  color: var(--text); font-size: .925rem; font-weight: 750; text-decoration: none;
}
.game-card img { width: 2rem; border-radius: 24%; box-shadow: 0 1px 4px #020d09; }
.game-card:hover, .game-card[aria-current] { border-color: #d4f594; }
.game-card[aria-current] {
  background: linear-gradient(160deg, #406435, #223e29);
  color: #efffc8; box-shadow: inset 0 1px #e4ffbd35, 0 0 14px #b0ea5530;
}
.game-heading img { width: clamp(4.25rem, 10vw, 7rem); border-radius: 22%; }
.game-page { max-width: 850px; padding-block: clamp(2rem, 6vw, 4rem); min-height: 70vh; }
.game-heading { display: flex; gap: clamp(.9rem, 4vw, 2rem); align-items: center; }
.game-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.35rem 0 2rem; border-bottom: 1px solid var(--line); }
.game-nav a { padding: .55rem 0; color: var(--muted); text-decoration: none; }
.game-nav a[aria-current] { color: var(--accent); border-bottom: 2px solid var(--accent); }
.game-nav a:hover { color: var(--accent); }
.game-page p { max-width: 68ch; }
.game-page section + section, .policy section { margin-top: 1.5rem; }
.game-page section h2 { font-size: 1.2rem; line-height: 1.3; margin-bottom: .4rem; }
.game-overview { display: grid; grid-template-columns: 1fr auto; gap: clamp(1.25rem, 5vw, 3rem); align-items: start; }
.screenshot { width: min(190px, 33vw); border: 1px solid var(--line); border-radius: 1.25rem; }
@media (max-width: 650px) {
  .studio-hero { padding-block: 2.5rem 3.25rem; }
  .studio-showcase { grid-template-columns: 1fr; gap: 1.5rem; }
  .studio-games { grid-template-columns: 1fr; gap: .15rem; }
  .studio-fan { padding-block: .5rem .8rem; }
  .studio-preview { flex-basis: clamp(3.5rem, 20%, 5.8rem); margin-inline: -.18rem; }
  .studio-preview > span { font-size: clamp(.65rem, 2.4vw, .8rem); }
  .game-overview { grid-template-columns: 1fr; }
  .screenshot { width: min(180px, 65vw); }
  .site-header { gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .studio-preview { transition: none; }
}
@media (max-width: 360px) {
  .site-header { gap: .45rem; }
  .site-header nav a { padding-inline: .48rem; font-size: .82rem; }
  .brand { gap: .3rem; font-size: 1rem; }
  .brand img { width: 2.6rem; }
}

.store-badges {
  display: flex; flex-wrap: wrap; align-items: start;
  gap: .65rem; margin-top: 1.1rem;
}
.store-badge { display: grid; justify-items: center; text-decoration: none; }
.store-art {
  display: flex; align-items: center; justify-content: center;
  height: clamp(3.25rem, 16vw, 4.25rem);
}
.store-art img { height: 100%; width: auto; }
.store-art-apple img { height: 67%; }
.store-upcoming .store-art { opacity: .54; filter: grayscale(1); }
.store-status { color: var(--muted); font-size: .79rem; font-weight: 650; }

.retrotd-feature { padding-block: 0 2.5rem; }
.retrotd-feature h2 { margin-bottom: .45rem; }
.retrotd-page .retrotd-website { margin-top: 1.25rem; }
