* {
  box-sizing: border-box;
  font-family: system-ui, sans-serif;
}

body {
  margin: 0;
  padding: 16px;
  background: #0f0f0f;
  color: #fff;
  text-align: center;
}

/* HEADER */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.nav-btn {
  text-decoration: none;
  color: #fff;
  padding: 8px 8px;
  background: #222;
  border-radius: 20px;
}

.categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-btn {
  min-width: 40px;              /* 👈 equal width baseline */
  height: 20px;                 /* 👈 same height for all */
  padding: 2 6px;              /* horizontal padding only */
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #ff0077);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

/* Hover */
.cat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 0, 119, 0.45);
  opacity: 0.95;
}

/* Active (tap) */
.cat-btn:active {
  transform: scale(0.97);
}


/* Hover effect */
.cat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 0, 119, 0.45);
  opacity: 0.95;
}

/* Active (tap) */
.cat-btn:active {
  transform: scale(0.97);
}


/* GRID */
h1 {
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 10px;
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

/* TEXT SPACE */
.info-text {
  margin: 10px 0 6px;
  font-size: 14px;
  color: #ccc;
}

/* TIMER */
.timer {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
}

.hidden {
  display: none;
}

/* DOWNLOAD BUTTON */
.download-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff6a00, #ff0077);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.download-btn:disabled {
  background: #333;
  cursor: not-allowed;
}

/* FOOTER */
footer {
  margin-top: 30px;
  padding: 15px 0;
  font-size: 13px;
  color: #888;
}
/* Categories wrapper */
.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 6px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar (Chrome / Safari) */
.categories::-webkit-scrollbar {
  display: none;
}

/* Prevent shrinking */
.cat-btn {
  flex: 0 0 auto;
}
.categories {
  scroll-snap-type: x mandatory;
}

.cat-btn {
  scroll-snap-align: start;
}
img {
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.gallery-intro {
  max-width: 720px;
  margin: 8px auto 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #ccc;
}
/* Category bar below intro */
.categories {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  margin: 0 auto 24px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar {
  display: none;
}

/* Category buttons */
.cat-btn {
  min-width: 90px;
  height: 36px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a00, #ff0077);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 6px 16px rgba(255, 106, 0, 0.35);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  flex: 0 0 auto;
}

/* Hover */
.cat-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255, 0, 119, 0.45);
  opacity: 0.95;
}

/* Active category */
.cat-btn.active {
  box-shadow: 0 0 0 2px #fff inset;
}
.wallpaper-category-footer {
  margin-top: 40px;
  padding: 28px 20px;
  background: #121212;
  border-radius: 16px;
}

.wallpaper-category-footer h3 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.category-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.category-grid li a {
  display: block;
  text-align: center;
  padding: 10px 14px;
  background: #1e1e1e;
  color: #eaeaea;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all .25s ease;
}

.category-grid li a:hover {
  background: linear-gradient(135deg,#ff6a00,#ff0077);
  color: #fff;
  transform: translateY(-2px);
}

/* Mobile tweak */
@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
