:root {
  color-scheme: dark;
  --bg: #10150f;
  --panel: #171e14;
  --line: #30392a;
  --cream: #f2ecd8;
  --muted: #bebfaf;
  --olive: #b8cf87;
  --grad: linear-gradient(90deg,#2fe8b5,#8a78f2 66%,#c14df7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font: 16px/1.45 Inter,Arial,sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:focus-visible,a:focus-visible {
  outline: 2px solid #61eecb;
  outline-offset: 4px;
}

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

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

.top {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 clamp(18px,4vw,68px);
  background: #121812;
  border-bottom: 1px solid #31362d;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(25px,3vw,46px);
  letter-spacing: -.055em;
  font-weight: 950;
  line-height: 1;
}

.brand img {
  width: .9em;
}

.top nav {
  margin-left: auto;
  display: flex;
  gap: clamp(15px,3vw,42px);
  color: var(--muted);
}

.top nav a:hover,.about a:hover {
  color: white;
}

.join {
  border: 1px solid transparent;
  background: linear-gradient(#181e18,#181e18) padding-box,var(--grad) border-box;
  border-radius: 10px;
  padding: 9px 17px;
  font-weight: 750;
  white-space: nowrap;
}

.join:hover {
  background: linear-gradient(#283522,#283522) padding-box,var(--grad) border-box;
}

.hero {
  min-height: clamp(264px,21vw,350px);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #10170f;
  border-bottom: 1px solid #424533;
}

.hero-lineup {
  position: absolute;
  z-index: -1;
  inset: 0 -2.5% 0 32%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  pointer-events: none;
}

.hero-lineup::after {
  content: "";
  position: absolute;
  inset: 0 0 0 -5%;
  background:
    linear-gradient(90deg, #10170f 3%, #10170fd9 9%, transparent 29%),
    linear-gradient(0deg, #10170f85, transparent 43%);
}

.hero-photo {
  overflow: hidden;
  transform: skewX(-9deg);
  border-right: 2px solid #c0c9a655;
}

.hero-photo img {
  display: block;
  max-width: none;
  width: 120%;
  height: 100%;
  margin-left: -10%;
  object-fit: cover;
  object-position: center 38%;
  transform: skewX(9deg);
  filter: saturate(.82) brightness(.84);
}

.hero-inner {
  padding: 26px clamp(22px,4vw,68px);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .23em;
  color: var(--muted);
}

.hero h1 {
  font-family: Inter,Arial,sans-serif;
  font-size: clamp(64px,8vw,132px);
  letter-spacing: -.045em;
  font-weight: 1000;
  font-style: italic;
  line-height: .95;
  margin: 9px 0 15px;
  text-shadow: 0 4px 22px #080c08a8;
}

.tagline {
  font-size: clamp(16px,2vw,24px);
  font-weight: 650;
}

.tagline:after {
  content: "";
  display: block;
  height: 4px;
  width: 95px;
  background: var(--grad);
  margin: 13px 0 0;
  border-radius: 6px;
}

.contract {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 11px 18px;
  background: #1c2418;
  border-bottom: 1px solid var(--line);
}

.contract .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contract img {
  width: 16px;
}

.contract code {
  overflow-wrap: anywhere;
  font-size: clamp(10px,2vw,14px);
  color: #e0e6d3;
}

.contract button,#random {
  background: #252f20;
  border: 1px solid #45543b;
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 750;
}

.contract button:hover,#random:hover {
  background: #36462e;
}

.locker {
  display: grid;
  grid-template-columns: clamp(132px,12vw,200px) minmax(0,1fr);
  max-width: 1850px;
  margin: auto;
}

.rail {
  background: linear-gradient(135deg,#1c2518,#131a12);
  border-right: 1px solid var(--line);
  padding: 33px 11px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.rail a {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.rail a span {
  font-size: 21px;
  line-height: 1;
}

.rail a:hover,.rail .current {
  background: #424f33;
  border-color: #4c583c;
}

.locker-body {
  padding: clamp(15px,2.3vw,36px);
  min-width: 0;
}

.locker-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.locker-head h2 {
  font-size: clamp(23px,3vw,43px);
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: -.04em;
  margin-bottom: 7px;
}

.locker-head h2 img {
  width: .78em;
}

.locker-head .eyebrow {
  margin-left: 3px;
}

#random {
  padding: 9px 12px;
  white-space: nowrap;
}

#random span {
  font-size: 19px;
  line-height: 1;
  margin-right: 3px;
  color: var(--olive);
}

.locker-layout {
  display: grid;
  grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr);
  gap: 18px;
  align-items: start;
}

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

.tile {
  overflow: hidden;
  position: relative;
  padding: 0;
  border: 1px solid #3a4332;
  border-radius: 10px;
  background: #252e1d;
  min-width: 0;
  transition: border-color .18s,box-shadow .18s,transform .18s;
}

.tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

.tile span {
  display: block;
  padding: 6px 2px;
  font-size: clamp(10px,1vw,14px);
  font-weight: 750;
  white-space: nowrap;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: #94aa78;
}

.tile[aria-pressed=true] {
  border-color: #c8ed9e;
  box-shadow: 0 0 0 2px #c8ed9e,0 0 21px #a0d47643;
}

.tile[aria-pressed=true] span {
  background: #465437;
}

.selected {
  position: sticky;
  top: 18px;
  background: linear-gradient(135deg,#242b1c,#151c13 68%);
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: clamp(12px,1.45vw,24px);
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(136px,1fr);
  align-items: center;
  gap: clamp(12px,1.6vw,25px);
}

.portrait {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid #525943;
  background: #262f22;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait img.swap {
  animation: swap .25s ease-out;
}

@keyframes swap {
  from {
    opacity: .52;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

h3 {
  font-size: clamp(22px,3.05vw,49px);
  letter-spacing: -.055em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  margin: 5px 0 14px;
}

h3:after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  background: var(--grad);
  border-radius: 5px;
  margin-top: 12px;
}

#animal-bio {
  color: #d5d4c7;
  font-size: clamp(12px,1.1vw,17px);
}

.patch {
  display: inline-block;
  margin: 12px 0 17px;
  background: #2a3523;
  border: 1px solid #405037;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.download {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  text-align: center;
  background: linear-gradient(#a2bd68,#566b38);
  border: 1px solid #b0cc7b;
  border-radius: 9px;
  padding: 9px 7px;
  color: #11190e;
  font-size: clamp(12px,1.13vw,17px);
  font-weight: 850;
}

.download:hover {
  filter: brightness(1.15);
}

.download span {
  font-size: 20px;
  line-height: 1;
}

.resolution {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.about,footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(18px,4vw,68px);
  border-top: 1px solid var(--line);
}

.about {
  background: #1b2217;
}

.about>img {
  width: 28px;
}

.about h2 {
  font-size: 22px;
}

.about p,footer span {
  color: var(--muted);
}

.about a {
  margin-left: auto;
  white-space: nowrap;
  font-size: 13px;
  color: var(--olive);
}

footer {
  justify-content: space-between;
  font-size: 12px;
}

footer .brand {
  font-size: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

@media(max-width:1160px) {
  .selected {
    grid-template-columns: 1fr;
  }
  .details {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(107px,.65fr);
    align-items: center;
    column-gap: 12px;
  }
  .animal-info {
    grid-row: span 2;
  }
  .resolution {
    margin: 0;
    align-self: start;
  }
  .patch {
    margin-bottom: 0;
  }
}

@media(max-width:850px) {
  .locker {
    display: block;
  }
  .rail {
    display: none;
  }
  .hero-lineup {
    left: 26%;
  }
  .locker-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:620px) {
  .top {
    height: 60px;
    gap: 12px;
  }
  .top nav {
    display: none;
  }
  .top .join {
    margin-left: auto;
    font-size: 12px;
    padding: 7px 10px;
  }
  .hero {
    min-height: 305px;
    align-items: flex-start;
  }
  .hero-lineup {
    inset: 132px -4% 0 -4%;
  }
  .hero-lineup::after {
    background:
      linear-gradient(180deg, #10170f, #10170f55 19%, transparent 37%),
      linear-gradient(0deg, #10170f55, transparent 42%);
  }
  .hero-photo {
    transform: skewX(-5deg);
  }
  .hero-photo img {
    object-position: center 33%;
    transform: skewX(5deg);
  }
  .hero-inner {
    padding-top: 20px;
  }
  .hero h1 {
    margin-bottom: 10px;
  }
  .hero .tagline::after {
    margin-top: 8px;
  }
  .contract {
    gap: 6px 10px;
  }
  .contract code {
    order: 3;
    width: 100%;
    text-align: center;
  }
  .locker-layout {
    display: flex;
    flex-direction: column;
    gap: 17px;
  }
  .selected {
    order: -1;
    position: static;
    width: 100%;
    grid-template-columns: minmax(0,1fr) minmax(105px,.85fr);
    gap: 10px;
  }
  .details {
    display: block;
  }
  .patch {
    margin: 7px 0 9px;
  }
  .resolution {
    margin-top: 5px;
  }
  .roster {
    width: 100%;
    gap: 8px;
  }
  .tile span {
    font-size: 11px;
  }
  .about {
    flex-wrap: wrap;
  }
  .about a {
    margin-left: 44px;
  }
  .about p {
    font-size: 13px;
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}

@media(max-width:620px) and (min-height:600px) {
  .selected {
    position: sticky;
    top: 8px;
    z-index: 2;
    box-shadow: 0 7px 25px #080b08a0;
  }
  .portrait {
    max-height: 190px;
    justify-self: center;
    width: 100%;
    max-width: 190px;
  }
}

.hero h1 {
  -webkit-text-stroke: .014em currentColor;
}

@media(max-width:620px) and (min-height:600px) {
  .tile {
    scroll-margin-top: 230px;
  }
}

.hero .eyebrow {
  font-size: clamp(9px,1.1vw,15px);
  letter-spacing: .28em;
  margin-bottom: 9px;
  color: #e8e3d0;
}

.top nav a {
  position: relative;
}

.top nav a:first-child {
  color: var(--cream);
  font-weight: 750;
}

.top nav a:first-child:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad);
}
