/* ---------- RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #111;
  color: #fff;
  line-height: 1.5;
  padding: 1rem;
}

/* ---------- HEADER ---------- */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 48px;           /* desktop */
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.button-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

button {
  background: #2d7cff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

button:hover {
  background: #1c5ce6;
}

#status {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ---------- SECTIONS ---------- */
section {
  margin-bottom: 2rem;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.75rem;
}

/* ---------- CARDS ---------- */
.card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.25rem;
}

.card button {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.5rem;
}

/* ---------- REWARDS BAR ---------- */
#rewards {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
}



/* ---------- MOBILE TWEAKS ---------- */
@media (max-width: 600px) {
  .logo { width: 36px; height: 36px; }   /* smaller on phones */
  h1     { font-size: 1.25rem; }
}