/* nyrGo! website: a dark, polished landing page; the game's creatures drift in the background. */

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(assets/fredoka.woff2) format('woff2');
}

:root {
  --bg: #070b1f;
  --bg-2: #0c1330;
  --panel: rgb(255 255 255 / 5%);
  --panel-2: rgb(255 255 255 / 8%);
  --border: rgb(255 255 255 / 11%);
  --border-2: rgb(255 255 255 / 18%);
  --text: #eef3ff;
  --muted: #a6b0cf;
  --mint: #43f289;
  --cyan: #3fd0ee;
  --violet: #9b6bff;
  --sun: #ffcf4d;
  --grad: linear-gradient(100deg, var(--mint) 0%, var(--cyan) 45%, var(--violet) 100%);
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgb(0 0 0 / 60%);
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  color-scheme: dark;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  line-height: 1.6;
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 600px at 85% -10%, rgb(155 107 255 / 22%), transparent 60%),
    radial-gradient(800px 600px at -10% 20%, rgb(63 208 238 / 16%), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgb(67 242 137 / 12%), transparent 60%), var(--bg);
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------ creatures in the background */

.bg-creatures {
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-c {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  translate: -50% 0;
  opacity: 0.32;
  rotate: var(--r);
  filter: saturate(1.05) drop-shadow(0 0 24px rgb(63 208 238 / 25%));
  animation: drift var(--d) ease-in-out var(--delay) infinite alternate;
}

.bg-c.far {
  opacity: 0.16;
  filter: blur(2.5px) saturate(0.9);
  scale: 0.8;
}

@keyframes drift {
  from {
    transform: translate3d(-12px, -10px, 0) rotate(-3deg);
  }
  to {
    transform: translate3d(14px, 16px, 0) rotate(3deg);
  }
}

.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* ------------------------------------------------------------ top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgb(7 11 31 / 72%);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
}

.brand img {
  width: 36px;
  height: auto;
}

.topbar nav {
  display: flex;
  gap: 4px;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
  transition:
    color 0.15s,
    background 0.15s;
}

.topbar nav a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 3px;
}

.lang a,
.lang span {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
}

.lang .on {
  background: var(--text);
  color: var(--bg);
}

/* ------------------------------------------------------------ buttons, chips */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 14px;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.btn-play {
  color: #04121a;
  background: var(--grad);
  box-shadow:
    0 10px 30px -8px rgb(67 242 137 / 55%),
    inset 0 1px 0 rgb(255 255 255 / 45%);
}

.btn-play:hover {
  transform: translateY(-2px);
  box-shadow:
    0 16px 36px -8px rgb(63 208 238 / 60%),
    inset 0 1px 0 rgb(255 255 255 / 45%);
}

.btn-play.soon {
  cursor: default;
  background: var(--panel-2);
  color: var(--muted);
  box-shadow: none;
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 15px;
  border-radius: 11px;
}

.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border-2);
}

.btn-ghost:hover {
  background: var(--panel-2);
  transform: translateY(-2px);
}

.chip,
.rar {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 650;
  padding: 2px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

.chip {
  color: #0b1024;
  background: var(--el, var(--cyan));
}

.rar {
  border: 1px solid currentcolor;
  background: transparent;
}

.rar-common {
  color: #c9d3e6;
}
.rar-uncommon {
  color: var(--mint);
}
.rar-rare {
  color: #7cc8f5;
}
.rar-epic {
  color: #c49bff;
}
.rar-legendary {
  color: var(--sun);
}
.rar-mythic {
  color: #ff8fc0;
}

/* ------------------------------------------------------------ hero */

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 40px) clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgb(67 242 137 / 22%);
}

/* keep the headline readable over the drifting creatures */
.hero-text {
  position: relative;
}

.hero-text::before {
  content: '';
  position: absolute;
  inset: -40px -60px;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    rgb(7 11 31 / 85%),
    rgb(7 11 31 / 40%) 70%,
    transparent
  );
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
}

.hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 560px;
  margin: 20px 0 30px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.stats li {
  display: grid;
}

.stats strong {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.1;
}

.stats span {
  color: var(--muted);
  font-size: 14px;
}

.hero-art {
  position: relative;
}

.banner {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: 24px;
  border: 1px solid var(--border-2);
  box-shadow:
    var(--shadow),
    0 0 80px -20px rgb(63 208 238 / 45%);
}

/* ------------------------------------------------------------ sections */

.section {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(16px, 4vw, 40px) 0;
}

.kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  margin-bottom: 14px;
}

.sub {
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 28px;
  font-size: 17px;
}

/* cards are opaque so the drifting creatures never sit under their text */
.card {
  background: linear-gradient(180deg, #141c42, #0e1534);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ------------------------------------------------------------ steps */

.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step {
  padding: 26px 22px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
}

.step .num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: #04121a;
  background: var(--grad);
}

.step h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* ------------------------------------------------------------ creatures */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.filter {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--border);
  transition:
    color 0.15s,
    background 0.15s,
    border-color 0.15s;
}

.filter[data-filter]:not([data-filter='all'])::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--el);
  vertical-align: 1px;
}

.filter:hover {
  color: var(--text);
  border-color: var(--border-2);
}

.filter.on {
  color: #0b1024;
  background: var(--text);
  border-color: var(--text);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.creature {
  border-radius: var(--radius);
  background: linear-gradient(180deg, #141c42, #0e1534);
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.creature:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: var(--shadow);
}

.creature[hidden] {
  display: none;
}

.creature img {
  width: 100%;
  aspect-ratio: 384 / 420;
  object-fit: cover;
  object-position: 50% 25%;
  background: radial-gradient(circle at 50% 40%, rgb(63 208 238 / 18%), transparent 70%);
}

.creature .info {
  padding: 14px 16px 18px;
}

.creature h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.dexno {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  margin-right: 4px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.lore {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------------------------------------ NFTs */

.nft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.nft-text .lead {
  margin-top: 0;
}

.nft-text strong {
  color: var(--text);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 32px;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%2304121a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--grad);
}

.supply {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.supply caption {
  text-align: left;
  font-weight: 650;
  padding: 0 0 10px;
  color: var(--text);
}

.supply th,
.supply td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.supply td {
  font-variant-numeric: tabular-nums;
}

.supply thead th {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.supply tfoot th,
.supply tfoot td {
  border-bottom: 0;
  font-weight: 700;
}

.note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cards img {
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}

.cards img:nth-child(odd) {
  transform: rotate(-2deg);
}
.cards img:nth-child(even) {
  transform: rotate(2deg) translateY(24px);
}

.cards img:hover {
  transform: scale(1.03);
}

/* ------------------------------------------------------------ FAQ */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-top: 24px;
}

.faq details {
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  font-weight: 650;
  font-size: 17px;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  translate: 0 -50%;
  font-size: 24px;
  font-weight: 400;
  color: var(--muted);
  transition: rotate 0.2s;
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq details p {
  margin: 0 0 20px;
  color: var(--muted);
}

/* ------------------------------------------------------------ final call to action */

.final {
  padding-bottom: 0;
}

.final-card {
  text-align: center;
  padding: clamp(36px, 6vw, 72px) 24px;
  border-radius: 28px;
  border: 1px solid var(--border-2);
  background:
    radial-gradient(600px 300px at 20% 0%, rgb(67 242 137 / 22%), transparent 70%),
    radial-gradient(600px 300px at 80% 100%, rgb(155 107 255 / 28%), transparent 70%), var(--bg-2);
  box-shadow: var(--shadow);
}

.final-card h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.final-card p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 17px;
}

.final-card .cta {
  justify-content: center;
}

/* ------------------------------------------------------------ footer */

.footer {
  max-width: 1240px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: 32px clamp(16px, 4vw, 40px) 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 14px;
}

.footer img {
  width: 36px;
}

.footer p {
  margin: 0;
}

.footer .small {
  margin-left: auto;
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .cta,
  .stats {
    justify-content: center;
  }
  .hero-art {
    margin-bottom: 40px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nft {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .topbar nav {
    display: none;
  }
  .brand span {
    display: none;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .creature .lore {
    display: none;
  }
  .creature h3 {
    font-size: 15px;
  }
  .bg-c:nth-child(n + 9) {
    display: none;
  }
  .bg-c {
    width: calc(var(--s) * 0.7);
  }
  .footer .small {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .bg-c {
    animation: none;
  }
  .creature,
  .step,
  .cards img,
  .btn {
    transition: none;
  }
}
