:root {
  color-scheme: dark;
  --bg: #030b14;
  --panel: #091729;
  --panel-soft: #0f1f31;
  --text: #edf3f7;
  --muted: #97a4b8;
  --accent: #d5ff13;
  --accent-dark: #2d3a06;
  --border: #1e314a;
  --danger: #f05366;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(1200px 900px at 65% -20%, #1f2c44 0%, var(--bg) 52%);
  color: var(--text);
}

.screen {
  max-width: 740px;
  margin: 0 auto;
  padding: 10px 14px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px 12px;
}

.brand {
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.2px;
}

.topbar-close {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
}

.hero {
  min-height: 170px;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(120deg, rgba(4, 12, 22, 0.88) 8%, rgba(40, 65, 95, 0.6) 58%),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80") center/cover;
  border: 1px solid rgba(190, 255, 48, 0.25);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1;
}

.hero p {
  margin: 12px 0 0;
  max-width: 340px;
  color: #d4dfeb;
  font-size: 16px;
}

.filters {
  margin-top: 14px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  border: 1px solid transparent;
  background: #121f31;
  color: var(--text);
  border-radius: 999px;
  padding: 11px 17px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 17px;
  font-weight: 700;
  transition: 160ms ease;
}

.chip-main {
  background: #111923;
}

.chip:hover {
  border-color: #344c70;
}

.chip.is-active {
  background: var(--accent);
  color: #131a20;
}

.grid {
  column-gap: 12px;
  column-count: 3;
  margin-top: 2px;
}

.card {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--panel-soft);
  border: 1px solid #1a2d44;
  position: relative;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 10px;
}

.card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.card-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.like-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(5, 9, 14, 0.72);
  color: #d7deea;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.like-btn.is-liked {
  color: #fff;
  background: rgba(240, 83, 102, 0.92);
}

.status {
  margin-top: 14px;
  font-size: 14px;
  color: #91a0b4;
  text-align: center;
  padding: 10px;
}

.status.is-error {
  color: #ff9cac;
}

@media (max-width: 760px) {
  .screen {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    font-size: 24px;
  }

  .hero {
    min-height: 120px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 14px;
  }

  .chip {
    font-size: 15px;
    padding: 10px 14px;
  }

  .grid {
    column-count: 2;
  }
}
