body {
  font-family: "Pretendard", system-ui;
  margin: 0;
  background: linear-gradient(180deg, #fff0f5, #fffafc);
  color: #444;

  -webkit-tap-highlight-color: transparent;
}

.center {
  text-align: center;
  padding: 60px 20px;
}

h1 {
  color: #ff7fa2;
  font-size: 36px;
  letter-spacing: -1px;
}

h2 {
  color: #ff8fab;
}

.main-photo {
  width: 260px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,.1);
  margin: 30px 0;
}

nav a {
  width: 240px;
  font-size: 17px;
  border-radius: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 22px;
}

/* 폴라로이드 카드 */
.card {
  background: #fff;
  padding: 10px 10px 18px; /* 아래 여백 넉넉 */
  border-radius: 6px;
  box-shadow:
    0 8px 18px rgba(0,0,0,0.15),
    0 2px 4px rgba(0,0,0,0.08);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
/* 사진 */
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #eee;
}

/* 날짜 / 장소 */
.card .meta {
  font-size: 14px;      /* ← 기존보다 크게 */
  color: #777;
  margin-top: 10px;
  text-align: center;
}

/* 메모 느낌 문구 */
.card p {
  margin: 10px 0 0;
  font-size: 20px;      /* ← 핵심 */
  text-align: center;
  font-family: 'Nanum Pen Script', cursive;
  color: #222;
}

/* 살짝 흔들리는 느낌 */
.card:nth-child(odd) {
  --r: -2deg;
}
.card:nth-child(even) {
  --r: 2deg;
}

/* 호버 시 살짝 들어올리기 */
.card:hover {
  transform: translateY(-6px) rotate(var(--r, 0deg));
  box-shadow: 0 14px 26px rgba(0,0,0,0.2);
}

.hamster {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.letter {
  background: white;
  padding: 30px;
  border-radius: 20px;
  max-width: 360px;
  text-align: center;
}

.bgm-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;

  background: #fff;
  color: #ff7fa2;
  border: none;
  padding: 10px 14px;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 600;

  box-shadow: 0 6px 16px rgba(255,127,162,.25);
  cursor: pointer;
}

.bgm-btn:active {
  transform: scale(0.95);
}