:root {
  --bg: #000000;
  --fg: #ffffff;
  --accent: #acd32d; /* toxic green */
  --accent-red: #ff3b3b;
  --muted: #aaaaaa;
  --border: #333333;
  --radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--fg);
}

a {
  color: inherit;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.lep-header,
.lep-footer {
  background: #050505;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lep-footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.toxic {
  color: var(--accent);
}

.lep-logo {
  font-family: "Schoolbell", cursive;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.lep-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}

.lep-nav a.active,
.lep-nav a:hover {
  color: var(--accent);
}

.lep-main {
  min-height: calc(100vh - 120px);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-title {
  font-family: "Schoolbell", cursive;
  font-size: 2.6rem;
  margin: 0;
}

.hero-tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero-credit {
  display: block;
  margin-top: 0.25rem;
  font-style: italic;
  color: var(--accent);
}

.hero-body {
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 38rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  background: var(--accent);
  color: #000;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(172, 211, 45, 0.5);
  margin-top: 0.5rem;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.hero-cta:hover {
  transform: translateY(-1px);
  background: #c4f04b;
  box-shadow: 0 0 16px rgba(172, 211, 45, 0.7);
}

.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-lep-card {
  background: #050505;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0.75rem;
  width: 220px;
  box-shadow: 0 0 16px rgba(172, 211, 45, 0.3);
}

.hero-lep-img {
  background: #111111;
  padding: 8px;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.hero-lep-img img {
  display: block;
  width: 100%;
  image-rendering: pixelated;
}

.hero-lep-meta {
  font-size: 0.85rem;
}

.hero-lep-title {
  font-weight: 600;
}

.hero-lep-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Collage */

.section-title {
  font-family: "Schoolbell", cursive;
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
}

.section-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.collage {
  padding-bottom: 2rem;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem;
}

.collage-tile {
  background: #111111;
  border-radius: 8px;
  border: 1px dashed var(--border);
  min-height: 80px;
}

/* Finder & Search shared */

.page-title {
  font-family: "Schoolbell", cursive;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.page-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.status-text {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Traits table */

.traits-table {
  width: 100%;
  border-collapse: collapse;
  background: #050505;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.traits-table th,
.traits-table td {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.traits-table thead {
  background: #111111;
  text-align: left;
}

.traits-table tbody tr:last-child td {
  border-bottom: none;
}

.traits-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease, transform 0.08s ease;
}

.traits-table tbody tr:hover {
  background: #111a00;
  transform: translateY(-1px);
}

.traits-table a.trait-link {
  color: var(--fg);
  text-decoration: none;
}

.traits-table a.trait-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* LEP grid */

.lep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.lep-card {
  background: #050505;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: border-color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.lep-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(172, 211, 45, 0.35);
}

.lep-card-img {
  background: #111111;
  border-radius: 6px;
  padding: 6px;
  margin-bottom: 0.25rem;
}

.lep-card-img img {
  display: block;
  width: 100%;
  image-rendering: pixelated;
}

.lep-card-title {
  font-weight: 600;
}

.lep-card-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.lep-card-links {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lep-link {
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--accent);
}

.lep-link:hover {
  color: var(--accent-red);
}

/* Responsive */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    margin-bottom: 1rem;
  }

  .lep-header,
  .lep-footer {
    padding-inline: 1rem;
  }
}
