:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", system-ui, sans-serif;
  background: #0b1610;
  color: #edf4e9;
  --muted: #b7c8b9;
  --mint: #c4ecad;
  --line: #2d4235;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #f2d591; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.shell { width: min(100% - 64px, 1220px); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  transform: translateY(-160%);
  border-radius: 6px;
  padding: 12px;
  background: var(--mint);
  color: #102015;
}
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid #203428; }
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 77px;
  gap: 20px;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.25rem; font-weight: 750; }
.wordmark img { border: 1px solid #49604a; border-radius: 12px; }
.nav-link, .footer a { padding: 10px 0; color: var(--muted); text-underline-offset: 5px; }
.nav-link:hover, .footer a:hover { color: var(--mint); }
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: clamp(430px, 44vw, 555px);
  margin-top: 24px;
  border: 1px solid #3e523c;
  border-radius: 24px;
  background: #122618;
}
.hero-art, .hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero-art { object-fit: cover; object-position: 57% 58%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, rgba(7, 20, 12, .96) 0%, rgba(9, 24, 15, .86) 29%, rgba(10, 24, 14, .3) 65%, transparent 100%),
    linear-gradient(0deg, rgba(6, 18, 11, .55), transparent 65%);
}
.hero-content { width: min(680px, 100%); padding: clamp(27px, 5vw, 71px); }
.eyebrow, .network {
  margin: 0;
  color: var(--mint);
  font-weight: 750;
  font-size: .875rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin: 14px 0 17px; font-size: clamp(3.2rem, 6.7vw, 6rem); letter-spacing: -.058em; line-height: .99; }
h1 em { color: var(--mint); font-weight: inherit; }
.intro { max-width: 425px; margin: 0 0 25px; color: #d5e1d2; font-size: 1.0625rem; line-height: 1.6; }
.pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 45px;
  padding: 9px 18px;
  border: 1px solid var(--accent, var(--mint));
  border-radius: 100px;
  color: var(--accent, var(--mint));
  background: transparent;
  font-weight: 750;
  text-decoration: none;
  text-align: center;
  transition: background .18s ease, color .18s ease;
}
.pill:hover, .pill.primary { background: var(--accent, var(--mint)); color: #102015; }
.pill.primary:hover { background: #dbf6ce; }
.games { margin: 38px 0 42px; scroll-margin-top: 20px; }
.games h2 { margin: 0 0 18px; font-size: clamp(2rem, 3.9vw, 3.1rem); letter-spacing: -.04em; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #132219;
  --accent: #c4ecad;
}
.game-card.testnet { --accent: #abdcd5; background: #112422; border-color: #2d4945; }
.game-card.kiln { --accent: #f0ba82; background: #221c16; border-color: #4d392a; }
.card-art { aspect-ratio: 2.05; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.testnet .card-art {
  position: relative;
  isolation: isolate;
  background: #14221c;
}
.testnet .card-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px;
  background: linear-gradient(rgba(11, 27, 21, .48), rgba(11, 27, 21, .68)),
    url("assets/testnet-recruit.webp") center 24% / cover;
  filter: blur(8px);
}
.testnet .card-art img { object-fit: contain; }
.kiln .card-art img { object-position: center 56%; }
.card-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 19px 21px 22px; }
.network { color: var(--accent); }
h3 { margin: 6px 0 8px; font-size: clamp(1.55rem, 2.6vw, 2rem); letter-spacing: -.035em; }
.card-content > p:not(.network) { margin: 0 0 22px; line-height: 1.5; color: var(--muted); }
.kiln .card-content > p:not(.network) { color: #d0bfb0; }
.card-content .pill { margin-top: auto; }
.footer { display: flex; justify-content: space-between; align-items: center; min-height: 76px; border-top: 1px solid var(--line); color: var(--muted); }
.footer span { font-weight: 750; }
@media (max-width: 810px) {
  .shell { width: calc(100% - 40px); }
  .game-grid { gap: 12px; }
  .card-content { padding-inline: 14px; }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 26px); }
  .masthead { min-height: 64px; }
  .hero { min-height: 490px; margin-top: 14px; border-radius: 18px; }
  .hero-art { object-position: 69% 33%; }
  .hero::after { background: linear-gradient(0deg, rgba(7, 19, 12, .99) 9%, rgba(7, 19, 12, .9) 37%, rgba(7, 19, 12, .36) 70%, rgba(7, 19, 12, .08)); }
  .hero-content { padding: 24px; }
  h1 { font-size: clamp(2.8rem, 11.5vw, 4rem); }
  .games { margin-top: 28px; }
  .game-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-content { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }
