/* Ping UI A — family moments first, 2026-08-16 */
:root {
  --orange: #ff6846;
  --orange-l: #ff866c;
  --cream: #faf7f2;
  --ink: #191715;
  --gray: #77716c;
  --line: #eae3dc;
  --g100: #f1ede8;
  --green: #6f8978;
  --lime: #dfe9df;
  --card: #fffdf9;
  --shadow: 0 10px 28px rgba(52, 43, 36, .07);
}

*, button, input, select, textarea {
  font-family: Pretendard, SUIT, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

html { background: #eee9e3; }
body { background: #eee9e3; color: var(--ink); }
.wrap { background: var(--cream); box-shadow: 0 0 54px rgba(43, 35, 29, .08); }
.screen { padding-left: 20px; padding-right: 20px; padding-bottom: 112px; }

/* App header */
.top { padding: 22px 2px 4px; min-height: 78px; }
.top .pet { display: none; }
.top .fam h1 { font-size: 25px; line-height: 1.15; font-weight: 820; letter-spacing: -.045em; }
.top .fam small { display: block; margin-top: 7px; color: #625d58; font-size: 13px; line-height: 1.3; font-weight: 520; letter-spacing: -.015em; }
.iconbtn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #615c57;
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}
.iconbtn svg { width: 23px; height: 23px; }
.badge { top: 1px; right: 0; background: var(--orange); border: 2px solid var(--cream); }

/* Today: one headline, photos first */
#feed { gap: 0; }
.home-hero { margin: 24px 2px 14px; }
.home-hero .fh-greet { align-items: center; gap: 10px; }
.home-hero .fh-greet #greetLine {
  flex: 1;
  color: var(--ink);
  font-size: clamp(22px, 6.4vw, 29px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -.048em;
  word-break: keep-all;
}
.home-hero .fh-greet .streak {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #64766a;
  background: #e8eee8;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  font-size: 10px;
  font-weight: 750;
}
.home-section-title, .feed-status, .home-overview { display: none !important; }

.members {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
  padding: 0;
}
.mcard {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: #e9e4de;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
}
.mcard.me { outline: 0; }
.mcard .ph, .mcard .empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  background: #e9e4de;
}
.mcard .ph { cursor: pointer; }
.mcard .bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  min-height: 64px;
  padding: 27px 12px 10px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 13, 12, .7) 100%);
  pointer-events: none;
}
.mcard .av { display: none; }
.mcard .nm { color: #fff; font-size: 14px; line-height: 1.2; font-weight: 780; text-shadow: 0 1px 7px rgba(0, 0, 0, .32); }
.mcard .cap { display: none; }
.mcard .bar .poke {
  position: static;
  transform: none;
  margin-left: auto;
  padding: 4px 7px;
  color: #fff;
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  pointer-events: auto;
}
.mcard .empty {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: #fff;
  text-align: center;
}
.mcard .empty .pending-photo {
  position: absolute;
  inset: -9px;
  width: calc(100% + 18px);
  height: calc(100% + 18px);
  object-fit: cover;
  filter: blur(5px) saturate(.62) brightness(.69);
  transform: scale(1.04);
}
.mcard .empty .pending-shade { position: absolute; inset: 0; background: rgba(27, 24, 21, .17); }
.mcard .empty .pending-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
}
.mcard .empty .pending-content .mav {
  width: 58px;
  height: 58px;
  margin: 0;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: none;
}
.mcard .empty .pending-content > span {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 760;
  text-shadow: 0 1px 9px rgba(0, 0, 0, .35);
}
.mcard .empty .poke {
  position: static;
  transform: none;
  padding: 8px 14px;
  color: #fff;
  background: rgba(24, 21, 19, .18);
  border: 1.5px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 740;
  backdrop-filter: blur(8px);
}
.mcard.pet-moment .ph { object-position: center; }
.mcard.preset-pet-moment .ph { object-fit: contain; padding: 14px; background: #f0ece7; }
.mcard.pet-moment .bar { pointer-events: none; }

/* Reactions remain available without crowding every tile. Tap a filled photo to open. */
.mcard .reactions, .mcard .cmts { display: none; }
.mcard.expanded {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1px solid var(--line);
}
.mcard.expanded .ph { aspect-ratio: 4 / 3; }
.mcard.expanded .bar { position: relative; inset: auto; margin-top: -64px; }
.mcard.expanded .reactions {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  padding: 11px 11px 6px;
  overflow-x: auto;
  background: var(--card);
}
.mcard.expanded .cmts { display: block; position: relative; z-index: 4; background: var(--card); }
.mcard.expanded .cap { display: block; margin-left: auto; max-width: 42%; color: rgba(255,255,255,.88); font-size: 10px; }
.rbtn { flex: 0 0 auto; background: #f0ece7; color: #5f5954; }
.rbtn.mine { background: #fff0eb; outline: 1.5px solid var(--orange); }

.home-ping-cta {
  width: 100%;
  margin: 12px 0 0;
  padding: 15px 18px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--orange);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: -.025em;
  box-shadow: 0 7px 18px rgba(255, 104, 70, .2);
  cursor: pointer;
}
.home-ping-cta.done { color: #48584d; background: #e3ebe4; box-shadow: none; }
.home-ping-cta small { margin-left: 6px; font-size: 11px; font-weight: 650; opacity: .76; }

.home-activity { margin: 27px 2px 0; }
.home-activity h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.25; font-weight: 800; letter-spacing: -.035em; }
.activity-row {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 10px 12px;
  background: #f1ede8;
  border-radius: 16px;
}
.activity-avatar {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e1ddd7;
  color: #5f5954;
  font-size: 17px;
  font-weight: 760;
}
.activity-avatar img { width: 100%; height: 100%; object-fit: cover; }
.activity-copy { min-width: 0; color: #393532; font-size: 13px; line-height: 1.45; word-break: keep-all; }
.activity-copy b { font-weight: 760; }
.activity-copy small { display: block; margin-top: 2px; color: #77716c; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.week-band {
  margin: 17px 2px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #837b75;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}
.week-band b { color: var(--orange); }
.home-quick { margin: 12px 0 6px; gap: 8px; }
.home-quick button {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .6);
}
.home-quick img { width: 28px; height: 28px; }
.home-quick strong { font-size: 12px; }
.home-quick span { font-size: 9.5px; }

/* Bottom navigation: one icon family, one active color */
.app-bottom-nav {
  height: 80px;
  padding: 7px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, .95);
  border-top: 1px solid rgba(226, 217, 208, .84);
  box-shadow: 0 -8px 26px rgba(57, 47, 39, .06);
  backdrop-filter: blur(20px);
}
.nav-main {
  gap: 3px;
  color: #6f6a65;
  background: transparent !important;
  border-radius: 0;
  font-size: 10px;
  font-weight: 650;
}
.nav-main svg { width: 25px; height: 25px; }
.nav-main.is-active { color: var(--orange); font-weight: 760; }
.nav-camera {
  align-self: start;
  width: 62px;
  height: 62px;
  margin-top: -16px;
  border: 5px solid var(--card);
  background: var(--orange);
  box-shadow: 0 7px 18px rgba(255, 104, 70, .25);
}
.nav-camera svg { width: 27px; height: 27px; }

/* The same quieter visual language across calendar, memories and family. */
.cal-header { padding-top: 22px; }
.cal-header h2 { font-size: 22px; font-weight: 800; letter-spacing: -.045em; }
.cal-back { color: #57514c; font-weight: 400; }
.ctabs { gap: 0; margin-top: 10px; padding: 4px; background: #eee9e4; border-radius: 14px; }
.ctab { padding: 10px; color: #7a746e; background: transparent; border-radius: 11px; font-weight: 680; }
.ctab.on { color: var(--ink); background: var(--card); box-shadow: 0 2px 8px rgba(48, 39, 32, .06); }
.cta, .care-add, .pbtn, .btn-ping { background: var(--orange); border-radius: 14px; }
.cta.ghost { color: var(--orange); background: transparent; border-color: var(--orange); }
.cev, .tier, #profile > .mcard, #premiumCard, .products-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: none;
}
.album-grid { gap: 4px; }
.album-cell { border-radius: 9px; }
.ppreview { background: #f1ede8; }
.products-section { box-shadow: none !important; }

@media (max-width: 360px) {
  .screen { padding-left: 16px; padding-right: 16px; }
  .top .fam h1 { font-size: 23px; }
  .home-hero .fh-greet #greetLine { font-size: 22px; }
  .members { gap: 6px; }
}

@media (min-width: 560px) {
  .wrap { margin: 18px auto; min-height: calc(100vh - 36px); border-radius: 28px; overflow: hidden; }
  .app-bottom-nav { bottom: 18px; width: min(490px, calc(100% - 24px)); border: 1px solid rgba(226, 217, 208, .84); border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
