/* 02 홈 */
/* Star Trail 장식은 앱 격자와 독 사이 빈 공간 안에서만 그린다 (낮은 화면에서 아이콘을 가리지 않게) */
.home-space { position: relative; container-type: size; overflow: hidden; }
.home .deco { position: absolute; pointer-events: none; z-index: 0; height: auto; }
.home .deco.sparkle { width: min(103px, 34cqh); right: 7%; top: 4%; filter: drop-shadow(0 0 11px rgba(232,79,176,.35)); }
.home .deco.burst { width: min(94px, 30cqh); left: 12%; bottom: 22%; filter: drop-shadow(0 0 10px rgba(46,127,240,.35)); }
.home .deco.bolt { width: min(56px, 18cqh); left: 52%; bottom: 12%; filter: drop-shadow(0 0 8px rgba(255,108,138,.35)); }
@container (max-height: 80px) { .home .deco { display: none; } }
.home-space .ph-note { position: relative; z-index: 1; }

.widgets {
  flex: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 13px;
  padding: 18px calc(var(--gutter) + var(--sar)) 0 calc(var(--gutter) + var(--sal));
}
.widget {
  position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-widget); text-align: left;
  max-height: 190px;
}
.widget.dday { padding: 18px; display: flex; flex-direction: column; color: var(--text-primary); }
.widget.dday .w-date { font-size: 12px; font-weight: 500; color: var(--text-secondary); line-height: 1.4; }
.widget.dday .w-num { margin-top: auto; font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -0.06em; color: var(--brand-blue); font-variant-numeric: tabular-nums; }
.widget.dday .w-label { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.widget.dday .w-deco { position: absolute; top: 14px; right: 14px; width: 45px; }

.widget.photo img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms ease; }
.widget.photo img.ph.on { opacity: 1; }
.widget.photo .scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 53%; background: linear-gradient(180deg, rgba(30,24,81,0) 0%, rgba(30,24,81,.82) 100%); }
.widget.photo .info { position: absolute; left: 18px; bottom: 18px; color: var(--white); }
.widget.photo .info b { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.widget.photo .info span { display: block; font-size: 12px; font-weight: 500; opacity: .8; line-height: 1.4; }
.widget.photo .dots { position: absolute; right: 18px; bottom: 21px; display: flex; gap: 4px; align-items: center; }
.widget.photo .dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all 300ms; }
.widget.photo .dots i.on { width: 6px; height: 6px; background: var(--white); }
.widget:active { transform: scale(.97); }
.widget { transition: transform 120ms var(--ease); }

.app-grid {
  flex: none;
  display: grid; grid-template-columns: repeat(4, 64px); justify-content: space-between; row-gap: 22px;
  padding: 28px calc(26px + var(--sar)) 0 calc(26px + var(--sal));
}
.home-space { flex: 1; min-height: 12px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; }

.dock {
  flex: none;
  margin: 0 calc(21px + var(--sar)) calc(28px + var(--sab)) calc(21px + var(--sal));
  height: 94px; border-radius: 36px;
  background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: space-around; padding: 0 6px;
}
.dock .app .label { display: none; }

/* 앱 열기·닫기 확대 효과용 */
.zoom-ghost { position: absolute; z-index: 30; border-radius: 18px; pointer-events: none; }
