/* ========================================
   二十八星宿 · 华夏星象 - 国风典雅风格（重构版）
   结构：首页 / 星宿全览 / 星宿介绍（分页，hash 路由）
   详情：独立页面 (#/detail?name=)，关闭按钮 fixed
   ======================================== */

:root {
  --bg-deep: #0a0e1a;
  --bg-mid: #111827;
  --bg-card: rgba(20, 30, 55, 0.85);
  --gold: #c9a96e;
  --gold-light: #e8d5a3;
  --gold-dim: #8b7355;
  --jade: #6fb3a8;
  --ink: #e8e0d0;
  --ink-dim: #a0a0a0;
  --danger: #c0392b;
  --luck: #27ae60;
  --border: rgba(201, 169, 110, 0.25);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
  background: var(--bg-deep);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.8;
  padding-top: var(--nav-h);   /* 为固定导航留出空间 */
}

/* ========== 星空背景 ========== */
.star-bg {
  position: fixed; inset: 0; z-index: -3;
  background: radial-gradient(ellipse at 20% 30%, #1a1a3e 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, #0d1b2a 0%, transparent 50%),
              linear-gradient(180deg, #050814 0%, #0a0e1a 40%, #0d1117 100%);
}
.twinkling { position: fixed; inset: 0; z-index: -2; background: transparent; }
.twinkling::before, .twinkling::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 30% 50%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 50% 10%, rgba(201,169,110,0.7), transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 20% 70%, rgba(201,169,110,0.5), transparent),
    radial-gradient(1px 1px at 60% 90%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 40% 30%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 80% 15%, rgba(201,169,110,0.6), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 55% 60%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 85% 45%, rgba(201,169,110,0.4), transparent);
  animation: twinkle 8s ease-in-out infinite alternate;
}
.twinkling::after { animation-delay: -4s; opacity: 0.5; }
@keyframes twinkle { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

.clouds {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 600px 200px at 20% 60%, rgba(20,35,60,0.3), transparent),
    radial-gradient(ellipse 400px 300px at 70% 30%, rgba(15,25,50,0.25), transparent),
    radial-gradient(ellipse 500px 250px at 50% 80%, rgba(10,20,40,0.2), transparent);
  filter: blur(40px);
  animation: drift 30s ease-in-out infinite;
}
@keyframes drift { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(30px); } }

/* ========== 顶部导航（固定） ========== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 5%;
  transition: all 0.4s ease;
}
.top-nav.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 22px;
  color: var(--gold);
}
.logo-icon { font-size: 18px; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.nav-links { display: flex; gap: 8px; }
.nav-link {
  padding: 8px 18px;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  border-radius: 20px;
  transition: all 0.3s;
  letter-spacing: 1px;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(201, 169, 110, 0.1);
}
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  cursor: pointer; padding: 5px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: all 0.3s;
}

/* ========== 页面容器 & 分页 ========== */
#app { position: relative; z-index: 1; min-height: calc(100vh - var(--nav-h)); }

.page { display: none; animation: pageIn 0.4s ease; }
.page.active { display: block; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== 通用 Section ========== */
.section {
  padding: 60px 5% 100px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
.section-header { text-align: center; margin-bottom: 44px; }
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(32px, 6vw, 48px);
  color: var(--gold-light);
  margin-bottom: 12px;
}
.section-desc { color: var(--ink-dim); font-size: 14px; }

/* ========== 首屏 ========== */
.hero {
  min-height: calc(40vh - var(--nav-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
}
.hero-content { max-width: 680px; animation: fadeUp 1.2s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-size: 12px;
  color: var(--gold-dim);
  letter-spacing: 3px;
  margin-bottom: 30px;
}
.hero-title {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 20px;
}
.title-char {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: clamp(48px, 10vw, 88px);
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,169,110,0.3);
  animation: charIn 0.6s ease-out forwards;
  animation-delay: calc(var(--i) * 0.15s);
  opacity: 0;
}
@keyframes charIn { from { opacity: 0; transform: translateY(30px) rotateX(90deg); } to { opacity: 1; transform: translateY(0) rotateX(0); } }
.hero-subtitle {
  font-size: clamp(14px, 3vw, 18px);
  color: var(--jade);
  letter-spacing: 4px;
  margin-bottom: 24px;
}
.hero-desc { font-size: 15px; color: var(--ink-dim); line-height: 2; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 1px;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: var(--bg-deep);
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(201,169,110,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(201,169,110,0.5); }
.btn-ghost { background: transparent; color: var(--gold); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(201,169,110,0.08); border-color: var(--gold); }
.btn-full { width: 100%; justify-content: center; margin-top: 20px; }

.hero-scroll {
  position: absolute; bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  cursor: pointer;
  animation: bounce 2s ease-in-out infinite;
  font-size: 12px; color: var(--ink-dim); letter-spacing: 2px;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold), transparent); }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(10px)} }

/* ========== 命星查询（首页） ========== */
.query-box {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px;
  backdrop-filter: blur(8px);
}
.query-inputs { display: flex; gap: 16px; margin-bottom: 8px; }
.input-group { flex: 1; }
.input-group label {
  display: block;
  font-size: 13px;
  color: var(--gold-dim);
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.input-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(10,14,26,0.8);
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.3s;
  appearance: none;
}
.input-group select:focus, .input-group select:hover { outline: none; border-color: var(--gold); }

.query-result {
  margin-top: 24px;
  padding: 24px;
  border-radius: 14px;
  background: rgba(201,169,110,0.05);
  border: 1px solid var(--border);
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }
.result-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.result-name { font-family: 'Ma Shan Zheng', cursive; font-size: 36px; color: var(--gold); }
.result-fullname { font-size: 14px; color: var(--ink-dim); }
.result-fortune {
  display: inline-block; padding: 2px 12px; border-radius: 12px;
  font-size: 12px; margin-left: auto; font-weight: 600;
}
.result-fortune.吉, .result-fortune.大吉 { background: rgba(39,174,96,0.2); color: #2ecc71; }
.result-fortune.多吉 { background: rgba(46,204,113,0.15); color: #27ae60; }
.result-fortune.凶 { background: rgba(192,57,43,0.2); color: #e74c3c; }
.result-fortune.多凶 { background: rgba(231,76,60,0.15); color: #c0392b; }
.result-info { font-size: 14px; color: var(--ink-dim); line-height: 2; }
.result-info strong { color: var(--gold-light); }

/* ========== 过滤器 ========== */
.filter-bar {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 24px;
  border: 1px solid var(--border);
  border-radius: 25px;
  background: transparent;
  color: var(--ink-dim);
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
  border-color: var(--gold);
  font-weight: 600;
}

/* ========== 星宿网格（全览，保持原有设计） ========== */
.stars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.star-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  text-align: left;
  font-family: inherit;
  color: inherit;
  border-top: 3px solid transparent;
}
.star-card[data-group="青龙"] { border-top-color: rgba(46,204,113,0.6); }
.star-card[data-group="朱雀"] { border-top-color: rgba(231,76,60,0.6); }
.star-card[data-group="白虎"] { border-top-color: rgba(243,156,18,0.6); }
.star-card[data-group="玄武"] { border-top-color: rgba(52,152,219,0.6); }
.star-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,169,110,0.08), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
}
.star-card:hover::before { opacity: 1; }
.star-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(201,169,110,0.15);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; position: relative; z-index: 1;
}
.card-name {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 32px;
  color: var(--gold);
  line-height: 1;
}
.card-fullname { font-size: 12px; color: var(--ink-dim); letter-spacing: 1px; }
.card-fortune {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.card-fortune.吉, .card-fortune.大吉 { background: rgba(39,174,96,0.2); color: #2ecc71; }
.card-fortune.多吉 { background: rgba(46,204,113,0.15); color: #27ae60; }
.card-fortune.凶 { background: rgba(192,57,43,0.2); color: #e74c3c; }
.card-fortune.多凶 { background: rgba(231,76,60,0.15); color: #c0392b; }
.card-body { position: relative; z-index: 1; }
.card-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.card-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 11px;
  background: rgba(201,169,110,0.08);
  border: 1px solid var(--border);
  color: var(--ink-dim);
}
.card-desc {
  font-size: 13px;
  color: var(--ink-dim);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.card-group { font-size: 11px; padding: 2px 10px; border-radius: 4px; letter-spacing: 1px; }
.card-group.青龙 { background: rgba(46,204,113,0.15); color: #2ecc71; }
.card-group.朱雀 { background: rgba(231,76,60,0.15); color: #e74c3c; }
.card-group.白虎 { background: rgba(243,156,18,0.15); color: #f39c12; }
.card-group.玄武 { background: rgba(52,152,219,0.15); color: #3498db; }
.card-enter { font-size: 12px; color: var(--gold-dim); }

/* ========== 详情页（独立页面，不再用弹窗） ========== */
.detail-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 80px;
  position: relative;
}
/* 关闭按钮：fixed，始终停在视口右上角，不随页面滚动 */
.detail-close {
  position: fixed;
  top: calc(var(--nav-h) + 14px);
  right: 16px;
  z-index: 1010;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(10, 14, 26, 0.88);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.detail-close:hover { background: var(--gold); color: #1a1208; transform: rotate(90deg); }

.detail-hero { text-align: center; margin-bottom: 28px; }
.detail-hero .detail-star-name {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 56px;
  color: var(--gold);
  line-height: 1;
}
.detail-hero .detail-star-full { font-size: 16px; color: var(--ink-dim); margin-top: 8px; letter-spacing: 2px; }
.detail-hero .detail-star-meta {
  display: flex; justify-content: center; gap: 12px; margin-top: 16px; flex-wrap: wrap;
}
.meta-tag {
  padding: 4px 14px; border-radius: 6px;
  font-size: 12px;
  background: rgba(201,169,110,0.08);
  border: 1px solid var(--border);
  color: var(--ink-dim);
}
.meta-tag .label { color: var(--gold-dim); margin-right: 4px; }

/* 详情内图片区：图片直接显示，点击放大 */
.detail-image-area {
  position: relative;
  max-width: 280px;
  width: 100%;
  margin: 0 auto 28px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: rgba(201, 169, 110, 0.06);
  cursor: zoom-in;
  transition: all 0.3s;
}
.detail-image-area:hover { border-color: var(--gold); box-shadow: 0 0 24px rgba(201, 169, 110, 0.25); }
.detail-image-area img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--ink-dim); font-size: 14px;
  text-align: center; padding: 16px;
}
.img-placeholder > div:first-child { font-size: 48px; margin-bottom: 8px; }
.img-hint { font-size: 12px; opacity: 0.7; margin-top: 6px; }

.detail-section { margin-bottom: 20px; }
.detail-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; color: var(--gold);
  margin-bottom: 10px; font-weight: 600;
  user-select: none;
}
.detail-section-title .icon { font-size: 16px; }
.detail-section .box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}
.detail-section .box p { font-size: 14px; color: var(--ink); line-height: 2; }
.detail-section .box p + p { margin-top: 8px; }
.detail-section .highlight { color: var(--gold-light); font-weight: 600; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag {
  padding: 3px 12px; border-radius: 14px; font-size: 12px;
  background: rgba(201,169,110,0.1); border: 1px solid var(--border); color: var(--gold-light);
}
.luck-pill { display: inline-block; padding: 2px 12px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.luck-pill.吉, .luck-pill.大吉 { background: rgba(39,174,96,0.2); color: #2ecc71; }
.luck-pill.多吉 { background: rgba(46,204,113,0.15); color: #27ae60; }
.luck-pill.凶 { background: rgba(192,57,43,0.2); color: #e74c3c; }
.luck-pill.多凶 { background: rgba(231,76,60,0.15); color: #c0392b; }

/* ========== 图片预览遮罩（点击放大 / 再点关闭） ========== */
.image-overlay {
  position: fixed; inset: 0; z-index: 3000;
  display: none;
  align-items: center; justify-content: center;
  flex-direction: column;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  padding: 56px 16px 40px;
}
.image-overlay.active { display: flex; }
.image-overlay img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid var(--gold);
  box-shadow: 0 0 60px rgba(201, 169, 110, 0.25);
  cursor: zoom-out;   /* 提示：再点关闭 */
}
.image-close {
  position: fixed; top: 16px; right: 16px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.15);
  color: var(--gold); font-size: 20px; cursor: pointer;
  transition: all 0.3s; z-index: 3010;
}
.image-close:hover { background: var(--gold); color: #1a1208; }
.image-hint { margin-top: 16px; color: var(--ink-dim); font-size: 13px; letter-spacing: 2px; }

/* ========== 介绍页 ========== */
.intro-article { max-width: 820px; margin: 0 auto; }
.intro-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 24px 20px;
  margin-bottom: 20px;
}
.intro-block h3 {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 22px; color: var(--gold);
  margin-bottom: 12px;
}
.intro-block p { font-size: 15px; line-height: 2; color: var(--ink); margin-bottom: 10px; }
.intro-block p:last-child { margin-bottom: 0; }
.intro-block strong { color: var(--gold-light); }
.intro-quote {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  margin: 16px 0;
  background: rgba(201, 169, 110, 0.05);
  font-style: italic; color: var(--ink-dim);
  border-radius: 0 8px 8px 0;
}
.four-gods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-top: 16px;
}
.four-god-card {
  text-align: center;
  padding: 20px 12px;
  background: rgba(201, 169, 110, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
  cursor: default;
}
.four-god-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.four-god-card .god-icon { font-size: 36px; margin-bottom: 6px; }
.four-god-card .god-name {
  font-family: 'Ma Shan Zheng', cursive;
  font-size: 18px; color: var(--gold); margin-bottom: 4px;
}
.four-god-card .god-desc { font-size: 12px; color: var(--ink-dim); line-height: 1.7; }

/* ========== 页脚 ========== */
.footer {
  padding: 50px 20px 40px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: rgba(5,8,20,0.5);
}
.footer-logo { font-family: 'Ma Shan Zheng', cursive; font-size: 22px; color: var(--gold); margin-bottom: 12px; }
.footer-quote { font-size: 13px; color: var(--gold-dim); max-width: 500px; margin: 0 auto 12px; font-style: italic; }
.footer-note { font-size: 12px; color: var(--ink-dim); }

/* ========== 滚动显现动画 ========== */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(10,14,26,0.97);
    backdrop-filter: blur(12px);
    padding: 20px;
    gap: 4px;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-link { padding: 14px 20px; font-size: 16px; }
  .nav-toggle { display: flex; }

  .section { padding: 40px 5% 70px; }
  .stars-grid { grid-template-columns: 1fr; gap: 14px; }
  .query-inputs { flex-direction: column; gap: 14px; }
  .detail-close { top: calc(var(--nav-h) + 10px); right: 12px; width: 38px; height: 38px; font-size: 16px; }
  .detail-hero .detail-star-name { font-size: 44px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .stars-grid { grid-template-columns: repeat(2, 1fr); }
}
