/* Maian Games — riêng cho màn hình Home */

main {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 8px;
}

.hero {
  padding: 22px var(--pad) 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero h1 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(27px, 7vw, 40px);
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 48ch; }
.hero .chips { margin-top: 4px; }

/* --- dải mời cài app --- */
.install {
  margin: 16px var(--pad);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.install[hidden] { display: none; }
.install p { margin: 0; font-size: 13px; line-height: 1.35; }
.install strong { display: block; font-size: 13.5px; }
.install span { color: var(--muted); }
.install .btn { margin-left: auto; }

/* --- nhãn mục --- */
.section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px var(--pad) 10px;
}
.section-label b {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-label small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

/* --- lưới thẻ game --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 0 var(--pad) 12px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: var(--shadow);
}
.card:active { transform: translateY(0); }

.thumb {
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: radial-gradient(120% 100% at 30% 0%, var(--thumb-a), var(--thumb-b));
  border: 1px solid var(--line);
  overflow: hidden;
}
.thumb svg { width: 68%; height: 68%; }

.card-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }

.best {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--leaf);
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}

.card.soon {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
  pointer-events: none;
}
.card.soon .thumb {
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  border-style: dashed;
}
.card.soon .card-name { color: var(--muted); font-weight: 500; }

.applink {
  display: flex;
  justify-content: center;
  padding: 18px var(--pad);
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 12px;
  font-family: var(--f-mono);
}
