/* =====================================================
   给她的专属小站 · 样式
   想换配色的话，改最上面 :root 里的变量就行。
   ===================================================== */

[hidden] { display: none !important; }

:root {
  --rose: #e0567a;
  --rose-soft: #f7c6d8;
  --violet: #7c6bd6;
  --ink: #3a2f35;
  --muted: #8d8188;
  --line: rgba(224, 86, 122, 0.14);
  --card: rgba(255, 255, 255, 0.72);
  --radius: 24px;
  --shadow: 0 18px 50px rgba(180, 120, 150, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(165deg, #fff3f6 0%, #f4eefb 48%, #eef7fb 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ---------- 背景光斑 ---------- */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55;
  animation: float 16s ease-in-out infinite;
}
.blobs i:nth-child(1) { width: 420px; height: 420px; background: #ffd3e0; top: -120px; left: -80px; }
.blobs i:nth-child(2) { width: 360px; height: 360px; background: #d9d0fb; bottom: -100px; right: -60px; animation-delay: -5s; }
.blobs i:nth-child(3) { width: 300px; height: 300px; background: #cfeaf6; top: 45%; left: 55%; animation-delay: -9s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(24px, -30px) scale(1.08); }
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 250, 252, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}
.nav a {
  padding: 6px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 14px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: rgba(224, 86, 122, .1); color: var(--rose); }

main { max-width: 960px; margin: 0 auto; padding: 0 20px 60px; }

/* ---------- 首页 ---------- */
.hero {
  min-height: calc(100vh - 60px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 0 80px;
}
.avatar {
  position: relative; width: 168px; height: 168px; border-radius: 50%;
  background: linear-gradient(145deg, #ffd9e6, #e9e0ff);
  display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .75), var(--shadow);
  margin-bottom: 26px;
  overflow: hidden;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; border-radius: 50%; }
.avatar-fallback { font-size: 54px; }
.avatar img + .avatar-fallback { display: none; }

h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 10px; letter-spacing: .04em; }
.hero-line { font-size: 18px; color: var(--rose); margin: 0 0 6px; }
.hero-sub { color: var(--muted); font-size: 14px; margin: 0; }
.scroll-hint {
  margin-top: 40px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; text-decoration: none;
  color: var(--rose); background: rgba(255, 255, 255, .7); box-shadow: var(--shadow);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- 通用区块 ---------- */
.section { padding: 46px 0; scroll-margin-top: 72px; }
.section h2 { font-size: 24px; margin: 0 0 18px; }
.eyebrow { font-size: 11px; letter-spacing: .28em; color: var(--rose); opacity: .8; margin: 0 0 6px; }

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 30px;
}

/* ---------- 倒计时 ---------- */
.countdown-card { text-align: center; }
.card-title { font-size: 18px; margin: 0 0 4px; color: var(--muted); font-weight: 500; }
.bday-label { margin: 0; color: var(--muted); font-size: 13px; }
.bday-num {
  margin: 10px 0 0; font-size: clamp(26px, 6vw, 42px); font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--rose); letter-spacing: .02em;
}
.together { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.together-num { font-size: 30px; font-weight: 700; color: var(--violet); }
.together-text { margin-left: 8px; color: var(--muted); font-size: 14px; }

/* ---------- 相册 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.photo {
  margin: 0; border-radius: 18px; overflow: hidden;
  background: #fff; box-shadow: 0 10px 26px rgba(180, 120, 150, .14);
  display: flex; flex-direction: column;
}
.photo-media { position: relative; overflow: hidden; background: #fdeef3; }
.photo-media img {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: center 30%;
  cursor: zoom-in;
}
.photo-bar { display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.photo-bar figcaption {
  flex: 1; min-width: 0; font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 点开看大图 */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 20, 26, .92);
  display: grid; place-items: center; padding: 16px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 96vw; max-height: 88vh;
  border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.photo.missing {
  height: 190px; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #ffe6ee, #ffe6ee 12px, #fff2f6 12px, #fff2f6 24px);
  color: var(--rose); font-size: 13px;
}
.photo.missing::after { content: attr(data-text); }
.photo.missing figcaption { display: none; }
.gallery-empty {
  color: var(--muted); font-size: 14px; background: rgba(255, 255, 255, .6);
  border: 1px dashed var(--line); border-radius: 16px; padding: 22px;
}

/* ---------- 小游戏 ---------- */
.hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.game-meta { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.game-meta b { color: var(--ink); }
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 460px; }
.tile {
  position: relative; aspect-ratio: 1; border: 0; padding: 0; background: transparent;
  cursor: pointer; perspective: 700px;
}
.tile-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .35s ease; }
.tile.flipped .tile-inner, .tile.matched .tile-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 14px; backface-visibility: hidden; font-size: 26px;
}
.front {
  background: linear-gradient(145deg, #ffd9e4, #f3c6d9); color: var(--rose);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.back { background: #fff; transform: rotateY(180deg); box-shadow: inset 0 0 0 1px var(--line); }
.tile.matched .back { background: #fff6fa; }
.win { color: var(--rose); font-weight: 600; margin-top: 16px; }

/* ---------- 按钮 ---------- */
.btn {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 10px 22px; font-size: 14px; font-family: inherit;
  background: linear-gradient(135deg, #e0567a, #c9508f); color: #fff;
  box-shadow: 0 10px 24px rgba(224, 86, 122, .28);
  transition: transform .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn.ghost { background: rgba(255, 255, 255, .8); color: var(--rose); box-shadow: none; border: 1px solid var(--line); }

/* ---------- 秘密空间 ---------- */
.secret-gate input {
  width: 100%; max-width: 320px; padding: 11px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .9);
  font-family: inherit; font-size: 14px; outline: none;
}
.secret-gate input:focus { border-color: var(--rose); }
#secret-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.error { color: #d14363; font-size: 13px; min-height: 20px; margin: 10px 0 0; }
.secret-message { white-space: pre-wrap; font-size: 16px; line-height: 1.9; }
.secret-content .gallery { margin-top: 18px; }

/* ---------- 我们的记录（时间线） ---------- */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.tl-item { position: relative; padding: 0 0 26px 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 0; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(224, 86, 122, .15);
}
.tl-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.tl-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge {
  font-size: 11px; background: rgba(224, 86, 122, .12); color: var(--rose);
  border-radius: 999px; padding: 1px 9px;
}
.tl-title { font-size: 17px; margin: 0 0 4px; }
.tl-text { margin: 0; color: #5b5058; font-size: 14px; }
.tl-tags { margin: 6px 0 0; font-size: 12px; color: var(--rose); opacity: .85; }

/* ---------- 每天的你（嵌入） ---------- */
.journal-frame {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--shadow); background: #fff;
  margin-bottom: 14px;
}
.journal-frame iframe { display: block; width: 100%; height: 720px; border: 0; }
.journal-empty p { margin: 0 0 6px; }
.journal-empty p:last-child { margin-bottom: 0; }

/* ---------- 页脚 ---------- */
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 0 10px; }

/* ---------- 编辑相关（相册 / 记录 / 日记） ---------- */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; margin-bottom: 16px; }
.row.between h2 { margin: 0; }

.banner {
  margin: 16px 0 0; padding: 12px 16px; border-radius: 14px;
  background: #fff6e5; border: 1px solid #ffd9a8; color: #8a5a00;
  font-size: 13px; line-height: 1.6;
}

body.modal-open { overflow: hidden; }

.photo-actions { display: flex; gap: 6px; flex-shrink: 0; }

.mini {
  border: 0; cursor: pointer; font-family: inherit; font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .14);
}
.mini.danger { color: #c0392b; }
.mini:active { transform: scale(.96); }
.spacer { flex: 1; }

/* 弹窗 */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(58, 47, 53, .38);
  backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 18px;
}
.modal-card {
  width: min(520px, 100%); max-height: 88vh; overflow: auto;
  background: #fff; border-radius: 20px; padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .22);
  display: flex; flex-direction: column; gap: 14px;
}
.modal-title { margin: 0; font-size: 18px; }
.modal-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.modal-field input,
.modal-field textarea,
.modal-field select {
  font-family: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid #eee0e6; border-radius: 12px; padding: 10px 12px;
  outline: none; background: #fdfbfc; width: 100%;
}
.modal-field textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus { border-color: var(--rose); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* 日记日历 */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.icon-btn {
  border: 0; background: rgba(224, 86, 122, .1); color: var(--rose);
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 18px; cursor: pointer; line-height: 1;
}
.weekdays, .jgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekdays span { text-align: center; font-size: 12px; color: var(--muted); padding: 2px 0; }
.jcell {
  position: relative; height: 44px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .75); color: var(--ink);
  font-family: inherit; font-size: 13px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s;
}
.jcell.empty { background: transparent; cursor: default; }
.jcell:hover:not(.empty) { background: #ffe6ee; }
.jcell.today { outline: 2px solid var(--rose-soft); }
.jcell.selected { background: var(--rose); color: #fff; }
.jcell.has::after {
  content: ""; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--rose);
}
.jcell.selected.has::after { background: #fff; }
.j-day-title { margin: 18px 0 10px; font-size: 15px; font-weight: 500; color: var(--muted); }

.entries { display: grid; gap: 10px; }
.entry {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; background: rgba(255, 255, 255, .65);
}
.entry-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.entry-title { margin: 0 0 6px; font-size: 15px; }
.entry-content { margin: 0; white-space: pre-wrap; font-size: 14px; color: #4a3f45; }
.empty { color: var(--muted); font-size: 13px; margin: 0; }

/* ---------- 姨妈 ---------- */
.period-main { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.period-stat { display: flex; align-items: baseline; gap: 6px; }
.period-num {
  font-size: 46px; font-weight: 700; color: var(--rose);
  line-height: 1.1; font-variant-numeric: tabular-nums;
}
.period-label { font-size: 14px; color: var(--muted); }
.period-info p { margin: 3px 0; font-size: 14px; color: var(--muted); }
.period-info b { color: var(--ink); font-weight: 600; }
.period-history { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.period-history-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.period-history-title { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.period-count { font-size: 12px; color: var(--muted); }
.period-rows { display: flex; flex-direction: column; gap: 8px; }
.period-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px;
}
.period-date-box { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.period-date-num { font-size: 17px; font-weight: 700; color: var(--rose); line-height: 1.25; }
.period-date-week { font-size: 11px; color: var(--muted); }
.period-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.period-gap { font-size: 13px; color: var(--ink); }
.period-note {
  font-size: 12px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.period-acts { display: flex; gap: 6px; flex-shrink: 0; }

/* ---------- 吃饭 ---------- */
.meals { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.meal {
  background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 26px rgba(180, 120, 150, .14);
  display: flex; flex-direction: column;
}
.meal-media { background: #fdeef3; }
.meal-media img {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; cursor: zoom-in;
}
.meal-media.empty {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  color: var(--muted); font-size: 13px;
}
.meal-bar { padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.meal-date { font-size: 12px; color: var(--rose); }
.meal-food { font-size: 15px; color: var(--ink); }
.meal-actions { display: flex; gap: 6px; margin-top: 6px; }

/* ---------- 纪念日 ---------- */
.anniv { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); text-align: left; }
.anniv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.anniv-label { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.anniv-list { display: flex; flex-direction: column; gap: 8px; }
.anniv-empty { margin: 0; font-size: 13px; color: var(--muted); }
.anniv-item {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 12px;
}
.anniv-left { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.anniv-name { font-size: 14px; color: var(--ink); }
.anniv-date { font-size: 12px; color: var(--muted); }
.anniv-days { font-size: 13px; color: var(--rose); font-weight: 600; white-space: nowrap; }
.anniv-acts { display: flex; gap: 6px; }

/* ---------- 小屏 ---------- */
@media (max-width: 560px) {
  .nav { gap: 0; padding: 10px 8px; }
  .nav a { padding: 6px 10px; font-size: 13px; }
  .card { padding: 22px; }
  .board { gap: 8px; }
  .avatar { width: 140px; height: 140px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .photo-media img { aspect-ratio: 4 / 5; }
  .photo-bar { padding: 7px 9px; gap: 6px; }
  .photo-bar figcaption { font-size: 12px; }
  .mini { font-size: 11px; padding: 3px 8px; }
  .meals { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .meal-media img, .meal-media.empty { aspect-ratio: 1 / 1; }
  .period-num { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}


/* ---------- 相册叠放 ---------- */
.photo.multi {
  box-shadow:
    3px 3px 0 -1px #ffffff,
    6px 6px 0 -2px #f6e2ea,
    0 12px 28px rgba(180, 120, 150, .18);
}
.photo-count {
  position: absolute; top: 8px; right: 8px;
  background: rgba(58, 47, 53, .6);
  color: #fff; font-size: 12px; line-height: 1;
  padding: 5px 9px; border-radius: 999px;
}

/* ---------- 展开的多张 ---------- */
.group-view {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(30, 20, 26, .93);
  display: flex; flex-direction: column;
  padding: 16px; overflow: auto;
}
.group-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; color: #fff; flex-shrink: 0;
}
.group-title { font-size: 15px; }
.group-close {
  border: 0; cursor: pointer; font-family: inherit; font-size: 13px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .2); color: #fff;
}
.group-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.group-cell { background: #fff; border-radius: 14px; overflow: hidden; }
.group-cell img {
  display: block; width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; cursor: zoom-in;
}
.group-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.group-cap {
  flex: 1; min-width: 0; font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 纪念日微调 ---------- */
.anniv-item.soon {
  border-color: rgba(224, 86, 122, .45);
  background: rgba(255, 240, 245, .92);
}
.anniv-right { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.anniv-next { font-size: 11px; color: var(--muted); }


/* ---------- 姨妈日历 ---------- */
.pcal { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.pcal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pcal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pcell {
  position: relative; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 12px; color: var(--ink);
  background: rgba(255, 255, 255, .6);
}
.pcell.empty { background: transparent; }
.pcell.mark { background: var(--rose); color: #fff; font-weight: 600; }
.pcell.pred { outline: 2px dashed rgba(224, 86, 122, .55); outline-offset: -2px; }
.pcell.today { box-shadow: inset 0 0 0 2px rgba(124, 107, 214, .45); }
.pcal-legend {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 0 0; font-size: 12px; color: var(--muted);
}
.pcal-legend .dot {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; margin-left: 8px;
}
.pcal-legend .dot.mark { background: var(--rose); }
.pcal-legend .dot.pred { border: 2px dashed rgba(224, 86, 122, .55); background: transparent; }


/* ---------- 去过的城市 ---------- */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.city {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 10px 4px; border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line);
  font-family: inherit; font-size: 13px; color: var(--muted);
  cursor: pointer;
  transition: transform .12s, background .2s, color .2s, box-shadow .2s;
}
.city-icon { font-size: 15px; line-height: 1; filter: grayscale(1); opacity: .5; transition: filter .2s, opacity .2s; }
.city.on {
  background: linear-gradient(135deg, #e0567a, #c9508f);
  color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px rgba(224, 86, 122, .26);
}
.city.on .city-icon { filter: none; opacity: 1; }
.city:active { transform: scale(.95); }
.city-count { font-size: 13px; color: var(--muted); margin-right: 8px; }

@media (max-width: 560px) {
  .cities { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .city { font-size: 12px; padding: 9px 2px; }
}
