/* v0.3 增量样式：登录 / 引导 / 真实照片 / 状态 */
.auth-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
}

.auth-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.auth-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  flex: 0 0 auto;
}

.auth-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-brand b {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .02em;
}

.auth-brand small {
  display: block;
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--text-3);
  margin-top: 2px;
}

.auth-tagline {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 4px 22px;
}

.auth-tagline h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: .01em;
}

.auth-tagline p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-2);
}

.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  padding: 18px 18px 16px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-tab {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

.auth-tab.active {
  background: var(--rose-600);
  border-color: transparent;
  color: #fff;
}

[data-theme="dark"] .auth-tab.active {
  background: var(--rose-300);
  color: #2a1f22;
}

.auth-field {
  display: block;
  margin-bottom: 12px;
}

.auth-field span {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 6px;
}

.auth-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 18px;
  margin: 0 0 10px;
  line-height: 1.5;
}

.auth-submit {
  width: 100%;
}

.auth-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  margin-top: 12px;
  line-height: 1.7;
}

/* 引导 / 邀请 */
.onboard {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}

.onboard h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
}

.onboard .sub {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.8;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  text-align: left;
  border-radius: var(--radius-md);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-press) var(--ease);
}

.option-card:active {
  transform: scale(.98);
}

.option-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--rose-100);
  color: var(--rose-600);
  flex: 0 0 auto;
}

[data-theme="dark"] .option-ico {
  color: var(--rose-300);
}

.option-ico.purple {
  background: var(--purple-100);
  color: var(--purple-600);
}

.option-ico svg {
  width: 22px;
  height: 22px;
}

.option-card b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.option-card small {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.logout-link {
  align-self: center;
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 12px;
  margin-top: auto;
  padding: 12px;
}

.invite-box {
  padding: 18px;
  text-align: center;
}

.invite-box .label {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 10px;
}

.invite-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 4px 0 10px;
}

.invite-code b {
  font-size: 30px;
  letter-spacing: .22em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  font-family: var(--font-ui);
  font-weight: 650;
}

.invite-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.invite-actions .btn {
  flex: 1;
}

.waiting-note {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.7;
  text-align: center;
}

/* 真实照片 */
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero.has-img .hero-bokeh {
  display: none;
}

.hero.has-img .hero-vignette {
  background: linear-gradient(180deg, rgba(20, 16, 25, .10) 22%, rgba(20, 16, 25, .42) 62%, rgba(16, 13, 22, .82) 100%);
}

.photo-thumb img.thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.photo-thumb .photo-cap {
  z-index: 1;
}

.photo-grid .photo-thumb {
  overflow: hidden;
}

.viewer-media {
  position: relative;
  overflow: hidden;
  background: #1a1a22;
}

.viewer-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.viewer-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-on-dark {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}

/* 启动 / 状态 */
.boot-screen {
  min-height: 60dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-3);
  font-size: 13px;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--rose-500);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty .art svg {
  width: 34px;
  height: 34px;
  color: var(--text-3);
  margin: 0 auto;
}

.sync-hint {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  padding: 8px 12px 0;
  line-height: 1.6;
}

.invite-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-subtle);
  font-size: 12px;
  color: var(--text-2);
  margin-top: 10px;
}

.invite-mini b {
  letter-spacing: .16em;
  color: var(--gold);
  font-size: 14px;
}

.photo-cap-empty {
  color: var(--text-3);
  font-size: 11px;
}

/* ---------- v0.4 甜蜜小彩蛋 ---------- */
.meet-card {
  padding: 16px;
}

.meet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.meet-main {
  display: flex;
  align-items: center;
  gap: 18px;
}

.meet-days {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 64px;
}

.meet-days b {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.meet-days span {
  font-size: 12px;
  color: var(--text-3);
}

.meet-info h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 3px;
}

.meet-info p {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.5;
}

.meet-card.today {
  background: linear-gradient(150deg, rgba(243, 198, 192, .28), transparent 60%), var(--bg-elev);
}

.meet-empty {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
  padding: 2px;
}

.meet-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--rose-100);
  color: var(--rose-600);
  flex: 0 0 auto;
}

[data-theme="dark"] .meet-ico {
  color: var(--rose-300);
}

.meet-empty b {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.meet-empty small {
  font-size: 12px;
  color: var(--text-2);
}

.capsule-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  width: 100%;
  text-align: left;
}

.capsule-glow {
  position: absolute;
  right: -30px;
  top: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--rose-300), transparent 70%);
  opacity: .35;
  pointer-events: none;
}

.capsule-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--purple-100), var(--rose-100));
  color: var(--purple-600);
  flex: 0 0 auto;
}

.capsule-text {
  flex: 1;
}

.capsule-text b {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.capsule-text small {
  font-size: 12px;
  color: var(--text-2);
}

.celebrate-banner {
  position: relative;
  overflow: hidden;
  margin: 0 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--rose-100), var(--purple-100));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .celebrate-banner {
  background: linear-gradient(135deg, #32262c, #242135);
}

.celebrate-banner h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0 4px;
}

.celebrate-banner p {
  font-size: 12px;
  color: var(--text-2);
}

.celebrate-banner .eyebrow {
  color: var(--gold);
}

.spark {
  position: absolute;
  color: var(--gold);
  opacity: .8;
  font-size: 12px;
  animation: floaty 4.5s ease-in-out infinite;
}

.spark.s1 { right: 14px; top: 14px; }
.spark.s2 { right: 44px; bottom: 12px; animation-delay: 1.2s; font-size: 9px; }
.spark.s3 { right: 96px; top: 36px; animation-delay: 2.1s; font-size: 8px; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50% { transform: translateY(-6px); opacity: .95; }
}

.capsule-sheet {
  text-align: center;
  padding: 4px 2px 6px;
}

.capsule-photo {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
}

.capsule-photo img {
  width: 100%;
  max-height: 48vh;
  object-fit: cover;
  display: block;
}

.capsule-emoji {
  font-size: 34px;
  margin-bottom: 10px;
}

.capsule-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  text-align: left;
  margin-bottom: 10px;
}

.capsule-date {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 8px;
}

.capsule-sheet h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.paper-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.milestone-card {
  padding: 16px;
  margin-bottom: 10px;
}
