:root {
  --bg: #141311;
  --panel: #252118;
  --line: #3b362e;
  --text: #f6f5f1;
  --muted: #8d887f;
  --gold: #ffbf45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #121110 0%, #141311 35%);
  color: var(--text);
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
}

.topbar {
  height: 48px;
  border-bottom: 1px solid #26231d;
  background: #11100f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.brand {
  font-family: "Paytone One", sans-serif;
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 11px;
}

.nav a.active {
  color: var(--text);
}

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

button {
  border: 0;
  font: inherit;
  color: inherit;
}

.ghost {
  background: transparent;
  color: #d2cec7;
  font-size: 11px;
}

.points {
  height: 20px;
  min-width: 36px;
  border-radius: 10px;
  padding: 0 10px;
  background: #2a2620;
  color: #f6cc77;
  font-size: 11px;
}

.primary {
  height: 20px;
  border-radius: 5px;
  padding: 0 8px;
  background: var(--gold);
  color: #3a2a0a;
  font-size: 10px;
  font-weight: 700;
}

.page {
  width: min(1400px, calc(100% - 40px));
  margin: 20px auto 40px;
}

h1 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 46px;
  line-height: 1.1;
}

.toolbar {
  width: 100%;
}

.search-wrap {
  width: 840px;
  max-width: 100%;
  margin: 0 auto 18px;
  background: #1f1c17;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.search-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  color: #cbc7bf;
  padding: 12px 14px;
  font-size: 12px;
  outline: none;
}

.search-btn {
  width: 34px;
  height: 34px;
  margin-right: 4px;
  background: #2c2922;
  border-radius: 6px;
  color: #b8b4ad;
  cursor: pointer;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  border-bottom: 1px solid #27241f;
}

.tab {
  background: transparent;
  color: #8f8a81;
  padding: 10px 0;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.tab.active {
  color: #f4efe6;
  border-color: var(--gold);
  font-weight: 600;
}

.section {
  margin-top: 16px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #a39d94;
  font-weight: 500;
}

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

.card img {
  width: 100%;
  aspect-ratio: 248 / 441;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  border: 1px solid #2f2a23;
}

.card p {
  margin: 8px 2px 0;
  font-size: 11px;
  color: #9c968c;
  line-height: 1.2;
}

@media (max-width: 1200px) {
  h1 {
    font-size: 40px;
  }

  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .page {
    width: calc(100% - 24px);
  }

  h1 {
    font-size: 34px;
  }

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

  .tab {
    font-size: 13px;
  }
}
