@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Sora:wght@300;400;600;700;800&family=Roboto+Mono:wght@400;500&family=Caveat:wght@400;500;600;700&display=swap');

:root {
  --np-font-body: 'DM Sans', sans-serif;
  --np-font-heading: 'Sora', sans-serif;
  --np-font-mono: 'Roboto Mono', monospace;
  --np-font-hand: 'Caveat', cursive;

  --ssm-bg: #f7f4f0;
  --ssm-bg2: #ede9e3;
  --ssm-surface: #ffffff;
  --ssm-surface2: #faf8f5;
  --ssm-border: rgba(0, 0, 0, 0.07);
  --ssm-border2: rgba(0, 0, 0, 0.05);
  --ssm-text: #1c1917;
  --ssm-text2: #6b6560;
  --ssm-text3: #a09890;
  --ssm-accent: #c96a52;
  --ssm-warm: #e8d5c0;
  --ssm-warm2: #f2e8dc;
  --ssm-shadow: 0 1px 12px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.04);
  --ssm-shadow2: 0 4px 24px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
  --ssm-r: 14px;
  --ssm-r-sm: 10px;
  --ssm-player-h: 84px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--np-font-body);
  background: var(--ssm-bg);
  color: var(--ssm-text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* ─── Page ─────────────────────────────────────────── */
.ssm-page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--ssm-bg);
  padding-bottom: calc(var(--ssm-player-h) + 16px);
}

/* ─── Nav ──────────────────────────────────────────── */
.ssm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(247, 244, 240, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ssm-border2);
}

.ssm-nav-title {
  font-family: var(--np-font-hand);
  font-size: 20px;
  color: var(--ssm-text);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.ssm-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ssm-surface);
  box-shadow: var(--ssm-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.ssm-nav-btn:hover {
  transform: scale(1.07);
  box-shadow: var(--ssm-shadow2);
}

.ssm-nav-btn svg {
  width: 17px;
  height: 17px;
  stroke: var(--ssm-text2);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ssm-nav-btn svg.fill {
  stroke: none;
  fill: var(--ssm-text2);
}

/* ─── Hero ─────────────────────────────────────────── */
.ssm-hero {
  padding: 26px 24px 0;
  text-align: center;
  position: relative;
}

.ssm-hero-blob {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 220px;
  background: radial-gradient(ellipse at 50% 40%, var(--ssm-warm) 0%, transparent 65%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}

.ssm-avatar-wrap {
  position: relative;
  display: inline-block;
  z-index: 1;
  margin-bottom: 12px;
}

.ssm-avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid var(--ssm-surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
}

.ssm-avatar-heart {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  background: var(--ssm-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ssm-avatar-heart svg {
  width: 13px;
  height: 13px;
  fill: var(--ssm-accent);
  stroke: none;
}

.ssm-hero-hb {
  font-family: var(--np-font-hand);
  font-size: 15px;
  color: var(--ssm-text2);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.ssm-hero-name {
  font-family: var(--np-font-heading);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ssm-text);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.ssm-hero-tagline {
  font-family: var(--np-font-hand);
  font-size: 15px;
  color: var(--ssm-text2);
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

/* ─── Info Strip ───────────────────────────────────── */
/* .ssm-info-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 20px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 18px;
} */

.ssm-info-strip {
  display: flex;
  background: var(--ssm-surface);
  border: 1px solid var(--ssm-border);
  border-radius: var(--ssm-r);
  overflow: hidden;
  margin: 0 20px 18px;
  box-shadow: var(--ssm-shadow);
}

/* Vertical divider between columns */
.ssm-info-col+.ssm-info-col::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--ssm-border);
}


.ssm-info-col {
  flex: 1;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}

.ssm-info-strip::-webkit-scrollbar {
  display: none;
}

.ssm-info-card {
  flex-shrink: 0;
  background: var(--ssm-surface);
  border: 1px solid var(--ssm-border);
  border-radius: var(--ssm-r-sm);
  padding: 10px 12px;
  text-align: center;
  min-width: 76px;
  box-shadow: var(--ssm-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ssm-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ssm-shadow2);
}

/* .ssm-info-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 6px;
  background: var(--ssm-bg2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ssm-info-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--ssm-text2);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ssm-info-icon svg.fill {
  stroke: none;
  fill: var(--ssm-text2);
}

.ssm-info-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--ssm-text);
  line-height: 1.2;
  margin-bottom: 2px;
}

.ssm-info-lbl {
  font-size: 9.5px;
  color: var(--ssm-text3);
} */

.ssm-info-icon {
  width: 32px;
  height: 32px;
  background: var(--ssm-bg2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ssm-info-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--ssm-text2);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ssm-info-icon svg.fill {
  stroke: none;
  fill: var(--ssm-text2);
}

.ssm-info-val {
  font-size: 11px;
  font-weight: 600;
  color: var(--ssm-text);
  line-height: 1.2;
}

.ssm-info-lbl {
  font-size: 9.5px;
  color: var(--ssm-text3);
}

/* ─── Quote Card ───────────────────────────────────── */
.ssm-quote {
  margin: 0 20px 18px;
  background: var(--ssm-surface);
  border: 1px solid var(--ssm-border2);
  border-radius: var(--ssm-r);
  padding: 18px 20px 14px;
  position: relative;
  box-shadow: var(--ssm-shadow);
}

.ssm-quote-qo {
  display: none;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
  color: var(--ssm-warm);
  position: absolute;
  top: 8px;
  left: 12px;
}

.ssm-quote-qc {
  display: none;
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
  color: var(--ssm-warm);
  position: absolute;
  bottom: 6px;
  right: 12px;
}

.ssm-quote-text {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ssm-text2);
  /* text-align: center; */
  /* padding: 6px 14px 4px; */
  padding: 4px;
}

.ssm-quote-sign {
  font-family: var(--np-font-hand);
  font-size: 17px;
  color: var(--ssm-accent);
  /* text-align: center;  */
  margin-top: 8px;
  margin-bottom: 12px;
}

.santhi-sowjanya-mani__wish-signature {
  margin-top: 14px;
  font-family: var(--np-font-hand);
  font-size: 18px;
  color: var(--ssm-accent);
  font-weight: 600;
}

/* ─── Countdown Bar ────────────────────────────────── */
.ssm-cd-bar {
  margin: 0 20px 20px;
  background: var(--ssm-surface);
  border: 1px solid var(--ssm-border2);
  border-radius: var(--ssm-r-sm);
  padding: 10px 14px;
  /* display: flex; */
  align-items: center;
  gap: 10px;
  box-shadow: var(--ssm-shadow);
}

.ssm-cd-lbl-main {
  font-size: 11.5px;
  color: var(--ssm-text2);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ssm-cd-nums {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
}

.ssm-cd-unit {
  text-align: center;
  min-width: 34px;
}

.ssm-cd-n {
  font-family: var(--np-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ssm-accent);
  display: block;
  line-height: 1;
}

.ssm-cd-u {
  font-size: 8.5px;
  color: var(--ssm-text3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ssm-cd-dot {
  font-size: 13px;
  font-weight: 700;
  color: var(--ssm-text3);
  margin-top: -5px;
}

.ssm-cd-bday {
  font-family: var(--np-font-hand);
  font-size: 18px;
  color: var(--ssm-accent);
  text-align: center;
  width: 100%;
  padding: 4px 0;
}

/* ─── Moments Section ──────────────────────────────── */
.ssm-moments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 12px;
}

.ssm-moments-title {
  /* font-family: var(--np-font-hand); */
  font-family: var(--np-font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--ssm-text);
}

.ssm-little-moments-tite {
  font-family: var(--np-font-hand);
  text-align: center !important;
  font-size: 18px;
  color: var(--ssm-text);
}

.ssm-filter-pills {
  display: flex;
  gap: 4px;
  background: var(--ssm-surface);
  border: 1px solid var(--ssm-border);
  border-radius: 20px;
  padding: 3px;
}

.ssm-pill {
  padding: 4px 11px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ssm-text2);
  transition: all 0.2s;
  cursor: pointer;
}

.ssm-pill.active {
  background: var(--ssm-text);
  color: var(--ssm-surface);
}

/* ─── Media Grid ───────────────────────────────────── */
.ssm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 20px;
}

.ssm-cell {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--ssm-warm2);
}

.ssm-cell img,
.ssm-cell .ssm-cell-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.ssm-cell:hover img,
.ssm-cell:hover .ssm-cell-thumb {
  transform: scale(1.05);
}

/* play overlay for videos */
.ssm-cell-play-ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.1);
  transition: background 0.2s;
}

.ssm-cell:hover .ssm-cell-play-ico {
  background: rgba(0, 0, 0, 0.2);
}

.ssm-cell-play-ico svg {
  width: 26px;
  height: 26px;
  fill: rgba(255, 255, 255, 0.95);
  stroke: none;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

/* type badge */
.ssm-cell-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ssm-cell-badge svg {
  width: 10px;
  height: 10px;
  fill: #fff;
  stroke: none;
}

/* duration */
.ssm-cell-dur {
  position: absolute;
  bottom: 5px;
  left: 5px;
  font-family: var(--np-font-mono);
  font-size: 9.5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ─── Wish Card ────────────────────────────────────── */
.ssm-wish {
  margin: 0 20px 28px;
  background: linear-gradient(135deg, var(--ssm-surface) 0%, var(--ssm-warm2) 100%);
  border: 1px solid var(--ssm-border2);
  border-radius: var(--ssm-r);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--ssm-shadow);
}

.ssm-wish-left {
  flex: 1;
}

.ssm-wish-text {
  font-family: var(--np-font-hand);
  font-size: 15px;
  color: var(--ssm-text2);
  line-height: 1.6;
  margin-bottom: 4px;
}

.ssm-wish-sign {
  font-family: var(--np-font-hand);
  font-size: 20px;
  color: var(--ssm-accent);
  font-weight: 600;
}

.ssm-wish-emoji {
  font-size: 34px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ─── Footer ───────────────────────────────────────── */
.ssm-footer {
  padding: 8px 20px 20px;
  text-align: center;
  font-family: var(--np-font-hand);
  font-size: 14px;
  color: var(--ssm-text3);
}

.ssm-footer span {
  color: var(--ssm-accent);
}

/* ─── Bottom Player ────────────────────────────────── */
.ssm-player {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  background: var(--ssm-surface);
  border-top: 1px solid var(--ssm-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
  padding: 10px 16px 14px;
  border-radius: 10px 10px 0 0;
}

.ssm-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ssm-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1c1917;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: ssm-spin 4s linear infinite;
  animation-play-state: paused;
  overflow: hidden;
}

.ssm-disc.playing {
  animation-play-state: running;
}

.ssm-disc svg {
  width: 16px;
  height: 16px;
  fill: rgba(255, 255, 255, 0.8);
  stroke: none;
}

.ssm-track-info {
  flex: 1;
  min-width: 0;
}

.ssm-track-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ssm-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssm-track-sub {
  font-size: 10.5px;
  color: var(--ssm-text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssm-ctrl-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ssm-c-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.ssm-c-btn:hover {
  background: var(--ssm-bg2);
}

.ssm-c-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--ssm-text2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ssm-c-btn.fill svg {
  stroke: none;
  fill: var(--ssm-text2);
}

.ssm-c-btn.main-play {
  width: 38px;
  height: 38px;
  background: var(--ssm-text);
}

.ssm-c-btn.main-play svg {
  stroke: none;
  fill: #fff;
  width: 16px;
  height: 16px;
}

.ssm-c-btn.main-play:hover {
  background: var(--ssm-accent);
}

.ssm-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssm-time {
  font-family: var(--np-font-mono);
  font-size: 10px;
  color: var(--ssm-text3);
  flex-shrink: 0;
  min-width: 26px;
}

.ssm-track {
  flex: 1;
  height: 3px;
  background: var(--ssm-bg2);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}

.ssm-fill {
  height: 100%;
  background: var(--ssm-text);
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s linear;
  pointer-events: none;
}

.ssm-track:hover .ssm-fill {
  background: var(--ssm-accent);
}

/* ─── Lightbox ─────────────────────────────────────── */
.ssm-lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.ssm-lb.open {
  opacity: 1;
  pointer-events: all;
}

.ssm-lb-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
}

.ssm-lb-acts {
  display: flex;
  gap: 8px;
}

.ssm-lb-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ssm-lb-btn:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: scale(1.06);
}

.ssm-lb-btn svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ssm-lb-btn.fill svg {
  stroke: none;
  fill: #fff;
}

.ssm-lb-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ssm-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* video lightbox */
.ssm-lb-vwrap {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ssm-lb-vid {
  max-height: 100%;
  max-width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.ssm-lb-voverlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ssm-lb-vcenter {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.ssm-lb-vcenter svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  stroke: none;
}

.ssm-lb-vwrap.playing .ssm-lb-vcenter {
  opacity: 0;
  transition: opacity 0.2s;
}

.ssm-lb-vwrap.playing:hover .ssm-lb-vcenter {
  opacity: 1;
}

.ssm-lb-vctrl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssm-lb-vvol {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ssm-lb-vvol:hover {
  background: rgba(255, 255, 255, 0.26);
}

.ssm-lb-vvol svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* muted state */
.ssm-lb-vvol .icon-muted {
  display: none;
}

.ssm-lb-vvol.muted .icon-sound {
  display: none;
}

.ssm-lb-vvol.muted .icon-muted {
  display: block;
}

/* ─── Skeleton ─────────────────────────────────────── */
.ssm-skel {
  background: linear-gradient(90deg, var(--ssm-warm2) 25%, var(--ssm-warm) 50%, var(--ssm-warm2) 75%);
  background-size: 200% 100%;
  animation: ssm-shim 1.4s infinite;
}

@keyframes ssm-shim {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.ssm-empty-msg {
  grid-column: 1/-1;
  padding: 40px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--ssm-text3);
}

/* ─── Confetti ─────────────────────────────────────── */
.ssm-confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ─── Animations ───────────────────────────────────── */
@keyframes ssm-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes ssm-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ssm-hero {
  animation: ssm-up 0.5s ease 0.05s both;
}

.ssm-info-strip {
  animation: ssm-up 0.5s ease 0.12s both;
}

.ssm-quote {
  animation: ssm-up 0.5s ease 0.18s both;
}

.ssm-cd-bar {
  animation: ssm-up 0.5s ease 0.23s both;
}

.ssm-moments-head {
  animation: ssm-up 0.5s ease 0.28s both;
}

.ssm-grid {
  animation: ssm-up 0.5s ease 0.33s both;
}

.ssm-wish {
  animation: ssm-up 0.5s ease 0.38s both;
}

/* ─── Responsive ───────────────────────────────────── */
@media (max-width: 360px) {
  .ssm-hero-name {
    font-size: 21px;
  }

  .ssm-info-card {
    min-width: 68px;
    padding: 8px 10px;
  }

  .ssm-cd-n {
    font-size: 13px;
  }
}

@media (min-width: 431px) {
  .ssm-page {
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.08);
  }
}

/* ═══════════════════════════════════════════════
   LETTER PANEL — Cinematic Poster Style
   ═══════════════════════════════════════════════ */

.ssm-letter-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.35s ease;
}

.ssm-letter-overlay.open {
  background: rgba(0, 0, 0, 0.5);
  pointer-events: all;
}

.ssm-letter-panel {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  min-height: 100dvh;
  /* ← add this */
  max-height: 100dvh;
  /* ← add this */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  transition: transform 0.44s cubic-bezier(0.32, 0.72, 0, 1);
  background-color: #100612;
  overscroll-behavior: contain;
  /* ← prevents scroll bleed on iOS */
}

/* ── Content bottom padding bump on mobile ── */
@media (max-width: 430px) {
  .ssm-letter-content {
    padding-bottom: 100px;
    /* more breathing room above fold */
  }
}

.ssm-letter-panel::-webkit-scrollbar {
  display: none;
}

.ssm-letter-overlay.open .ssm-letter-panel {
  transform: translateX(-50%) translateY(0);
}

/* ── Photo — bleeds into background ── */
.ssm-letter-photo {
  position: relative;
  width: 100%;
  height: 58vh;
  /* desktop default */
  overflow: hidden;
  flex-shrink: 0;
}


.ssm-letter-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* Multi-layer gradient masks that blend photo → text section */
.ssm-letter-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 100%, transparent 30%, rgba(10, 4, 8, 0.45) 100%),
    linear-gradient(to bottom,
      rgba(12, 4, 6, 0.0) 0%,
      rgba(12, 4, 6, 0.05) 20%,
      rgba(14, 6, 8, 0.30) 45%,
      rgba(14, 6, 10, 0.65) 62%,
      rgba(14, 6, 12, 0.88) 75%,
      rgba(16, 6, 18, 0.97) 86%,
      #100612 100%);
  /* exact match to panel bg */
}

/* ── Close button ── */
.ssm-letter-close {
  position: fixed;
  top: 16px;
  right: calc(50% - 215px + 16px);
  z-index: 20;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.ssm-letter-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.ssm-letter-close svg {
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, 0.9);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 430px) {
  .ssm-letter-close {
    right: 16px;
  }
}

/* Mobile: reduce photo height so content has room */
@media (max-width: 430px) {
  .ssm-letter-photo {
    height: 80vh;
  }
}

/* Small mobile (SE, mini) */
@media (max-width: 375px) {
  .ssm-letter-photo {
    height: 60vh;
  }
}

/* ── Letter content — overlaps photo bottom ── */
.ssm-letter-content {
  margin-top: -80px;
  position: relative;
  z-index: 2;
  padding: 0 26px 72px;
  /* background: removed entirely — panel bg shows through */
}

/* Decorative stars row */
.ssm-letter-stars {
  font-size: 13px;
  letter-spacing: 10px;
  color: rgba(220, 160, 100, 0.4);
  text-align: center;
  margin-bottom: 22px;
  font-family: var(--np-font-hand);
}

.ssm-letter-greeting {
  font-family: 'Caveat', cursive;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
  /* subtle text shadow so it pops off the photo area */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.ssm-letter-bday {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  font-weight: 600;
  /* warm amber — from the bokeh lights in photo */
  color: rgba(255, 195, 110, 0.95);
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* Thin decorative rule */
.ssm-letter-rule {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 140, 80, 0.5), transparent);
  margin: 0 0 26px 0;
}

.ssm-letter-paras {
  font-family: 'Caveat', cursive;
  font-size: 19.5px;
  line-height: 1.85;
  color: rgba(250, 230, 210, 0.88);
}

.ssm-letter-paras p {
  margin-bottom: 20px;
}

.ssm-letter-paras p:last-child {
  margin-bottom: 0;
}

/* Italicise the song mention */
.ssm-letter-paras em {
  color: rgba(255, 200, 120, 1);
  font-style: italic;
}

/* Closing line */
.ssm-letter-closing {
  margin-top: 30px;
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: rgba(255, 200, 130, 0.95);
  font-weight: 600;
}

/* Bottom gradient so text fades out beautifully at scroll end */
.ssm-letter-panel::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 80px;
  background: linear-gradient(to top, #100612, transparent);
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
}

.ssm-letter-overlay.open .ssm-letter-panel::after {
  opacity: 1;
}

/* ═══════════════════════════════════
   PIN BOTTOM SHEET — full height, no scroll
═══════════════════════════════════ */

.ssm-pin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.3s ease;
}
.ssm-pin-backdrop.open {
  background: rgba(0,0,0,0.38);
  pointer-events: all;
}

/* Sheet — full viewport height, flex column */
.ssm-pin-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 430px;

  /* KEY: full screen height, no scroll */
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;

  z-index: 360;
  background: var(--ssm-bg);
  border-top: 1px solid var(--ssm-border);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -6px 32px rgba(0,0,0,0.08);

  display: flex;
  flex-direction: column;
}
.ssm-pin-sheet.open {
  transform: translateX(-50%) translateY(0);
}

/* ── Fixed header ── */
.ssm-pin-hdr {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 14px 18px 12px;
  background: var(--ssm-bg);
  border-bottom: 1px solid var(--ssm-border2);
  /* sticky within the flex column */
  position: sticky;
  top: 0;
  z-index: 2;
}
.ssm-pin-hdr-sp { width: 34px; }
.ssm-pin-hdr-title {
  flex: 1;
  text-align: center;
  /* font-family: var(--np-font-heading); */
  font-family: var(--np-font-hand);
  font-size: 15px;
  font-weight: 700;
  color: var(--ssm-text);
  letter-spacing: -0.01em;
}

.ssm-pin-back {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ssm-surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--ssm-shadow);
  transition: all 0.18s;
}
.ssm-pin-back:hover { background: var(--ssm-warm2); }
.ssm-pin-back:active { transform: scale(0.92); }
.ssm-pin-back svg {
  width: 15px; height: 15px;
  stroke: var(--ssm-text2);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Body — fills remaining height, distributes space evenly ── */
.ssm-pin-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 12px 24px 20px;
  overflow: hidden;
  /* overflow: scroll; */
}

/* ── Top block: icon + clue ── */
.ssm-pin-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.ssm-pin-lock {
  width: clamp(42px, 11vw, 52px);
  height: clamp(42px, 11vw, 52px);
  border-radius: 50%;
  background: var(--ssm-surface);
  border: 1px solid var(--ssm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ssm-shadow);
}
.ssm-pin-lock svg {
  width: clamp(18px, 5vw, 22px);
  height: clamp(18px, 5vw, 22px);
  stroke: var(--ssm-accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ssm-pin-clue {
  font-family: var(--np-font-heading);
  font-size: clamp(14px, 4.5vw, 16px);
  color: var(--ssm-text2);
  font-weight: 600;
  line-height: 1.5;
}
.ssm-pin-clue em {
  color: var(--ssm-accent);
  font-style: normal;
}

.ssm-pin-clue-sub {
  display: inline-block;
  font-family: var(--np-font-mono);
  font-size: clamp(9px, 2.2vw, 11px);
  color: var(--ssm-text3);
  letter-spacing: 0.04em;
  /* background: var(--ssm-surface); */
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 12%;
  /* border: 1px solid var(--ssm-border2); */
}

/* ── Mid block: dots + error ── */
.ssm-pin-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.ssm-pin-dots {
  display: flex;
  gap: 16px;
  justify-content: center;
}
.ssm-pin-dot {
  width: clamp(10px, 2.8vw, 13px);
  height: clamp(10px, 2.8vw, 13px);
  border-radius: 50%;
  border: 2px solid var(--ssm-border);
  background: transparent;
  transition: all 0.15s ease;
  display: block;
}
.ssm-pin-dot.filled {
  background: var(--ssm-accent);
  border-color: var(--ssm-accent);
  transform: scale(1.22);
  box-shadow: 0 0 0 3px rgba(201,106,82,0.12);
}
.ssm-pin-dot.error {
  background: #e05252;
  border-color: #e05252;
  transform: scale(1.22);
}

.ssm-pin-error {
  font-family: var(--np-font-hand);
  font-size: clamp(14px, 2.5vw, 14px);
  color: #e05252;
  min-height: 20px;
  text-align: center;
  margin-bottom: 4%;
}

/* ── Keypad — fills available width, keys scale with viewport ── */
.ssm-pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(7px, 2vw, 10px);
  width: 100%;
  max-width: 280px;
}

.ssm-pin-key {
  /* aspect ratio keeps keys proportional on any screen height */
  aspect-ratio: 1.65 / 1;
  border-radius: 12px;
  background: var(--ssm-surface);
  border: 1px solid var(--ssm-border2);
  font-family: var(--np-font-heading);
  font-size: clamp(16px, 4.5vw, 22px);
  font-weight: 700;
  color: var(--ssm-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.13s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  box-shadow: var(--ssm-shadow);
}
.ssm-pin-key:active {
  transform: scale(0.89);
  background: var(--ssm-warm);
  border-color: rgba(201,106,82,0.35);
  color: var(--ssm-accent);
  box-shadow: none;
}
.ssm-pin-key--star {
  font-size: clamp(14px, 4vw, 20px);
  color: var(--ssm-text3);
}
.ssm-pin-key--star:active {
  background: var(--ssm-warm2);
  color: var(--ssm-text2);
  border-color: var(--ssm-border);
}
.ssm-pin-key--del svg {
  width: clamp(14px, 4vw, 18px);
  height: clamp(14px, 4vw, 18px);
  stroke: var(--ssm-text2);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ssm-pin-key--del:active { background: #fde8e8; border-color: rgba(224,82,82,0.3); }
.ssm-pin-key--del:active svg { stroke: #e05252; }

/* Shake animation */
@keyframes ssm-pin-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-7px); }
  40%     { transform: translateX(7px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
.ssm-pin-dots.shake { animation: ssm-pin-shake 0.38s ease; }