/* OUR LITTLE HOME — PASTEL iOS */

:root {
  --pink: #f8d4e4;
  --blue: #c9e5fa;
  --yellow: #f8edcf;
  --text: #805a70;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
}

#phone {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(
      ellipse at 15% 15%,
      #fbd7e7 0%,
      transparent 55%
    ),
    radial-gradient(
      ellipse at 85% 65%,
      #c5e3fb 0%,
      transparent 60%
    ),
    linear-gradient(
      150deg,
      #f8d4e4,
      #f8edcf 55%,
      #c9e5fa
    );
  background-size: cover;
  background-position: center;
}

.hidden {
  display: none !important;
}

/* STATUS BAR */

.status-bar {
  width: 100%;
  height: 62px;
  flex-shrink: 0;
  padding: 15px 25px;
  padding-top: max(15px, env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.dynamic-island {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 115px;
  height: 32px;
  border-radius: 30px;
  background: #18181c;
}

.status-icons {
  font-size: 12px;
}

/* LOCK SCREEN */

.lock-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 35px;
  color: white;
}

.lock-icon {
  font-size: 25px;
}

#lock-date {
  font-size: 19px;
  margin: 12px 0 0;
}

#lock-time {
  font-size: clamp(75px, 19vw, 115px);
  letter-spacing: -5px;
  font-weight: 600;
  margin: 0;
}

.lock-message {
  margin-top: 30px;
  font-size: 16px;
}

.unlock-button {
  margin-bottom: 50px;
  padding: 16px 30px;
  border-radius: 40px;
  background: #ffffff65;
  backdrop-filter: blur(18px);
  color: #805a70;
  font-size: 15px;
  animation: float 2s infinite ease-in-out;
}

@keyframes float {
  50% { transform: translateY(-7px); }
}

/* PASSCODE SCREEN */

#passcode-screen {
  justify-content: center;
  align-items: center;
}

.passcode-content {
  width: min(100%, 350px);
  max-height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
}

.passcode-lock {
  font-size: 29px;
  margin-bottom: 10px;
}

.passcode-content h2 {
  font-size: 26px;
  font-weight: 500;
  margin: 8px 0;
}

.passcode-content p {
  font-size: 14px;
  margin: 8px 0;
}

.passcode-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 28px 0 35px;
}

.passcode-dots span {
  display: block;
  width: 14px;
  height: 14px;
  border: 2px solid #9b6c80;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}

.passcode-dots span.filled {
  background: #9b6c80;
}

/* KEYPAD */

.keypad {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  justify-content: center;
  justify-items: center;
  gap: 15px 22px;
}

.keypad button {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ffffff75;
  border: 1px solid #ffffffa8;
  backdrop-filter: blur(15px);
  color: #805a70;
  font-size: 30px;
  font-weight: 400;
  transition: 0.15s ease;
}

.keypad button:active {
  background: #ffffffc9;
  transform: scale(0.92);
}

#passcode-error {
  min-height: 18px;
  color: #c85e80;
  font-size: 13px;
  margin-top: 15px;
}

#cancel-passcode {
  padding: 8px 18px;
  background: transparent;
  color: #805a70;
  font-size: 15px;
}

/* WRONG PASSCODE */

.shake {
  animation: shake 0.35s ease;
}
@keyframes shake {
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-7px); }
  80% { transform: translateX(7px); }
}

/* HOME SCREEN */

.home-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 25px;
}

.home-content h2 {
  font-size: 30px;
}

.home-content p {
  font-size: 16px;
}

.welcome-heart {
  font-size: 75px;
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  50% { transform: scale(1.12); }
}

/* RESPONSIVE */

@media (max-height: 650px) {
  .passcode-content h2 {
    font-size: 21px;
  }

  .passcode-dots {
    margin: 14px 0;
  }

  .keypad {
    grid-template-columns: repeat(3, 58px);
    gap: 8px 15px;
  }

  .keypad button {
    width: 58px;
    height: 58px;
  }
}

/* =====================================
   OUR LITTLE HOME - iOS HOME SCREEN
===================================== */

.ios-home {
  width: 100%;
  max-width: 430px;
  flex: 1;
  min-height: 0;
  margin: 0 auto;
  padding: 24px 20px 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  scrollbar-width: none;
}

.ios-home::-webkit-scrollbar {
  display: none;
}

/* WIDGET LAYOUT */

.widget-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.widget {
  min-width: 0;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  box-shadow: 0 6px 24px rgba(140, 100, 140, 0.08);
}

.widget-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

/* DAYS WIDGET */

.days-widget {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #a66b91;
}

.days-widget h2 {
  font-size: clamp(36px, 10vw, 55px);
  letter-spacing: -2px;
  margin: 0;
  font-weight: 600;
}

.days-widget p {
  font-size: 12px;
  margin: 0;
}

/* PHOTO WIDGET */

.photo-widget {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(185, 221, 245, 0.65);
  color: #7299bb;
  text-align: center;
}

.photo-widget span {
  font-size: 55px;
}

.photo-widget p {
  font-size: 12px;
}

/* QUOTE WIDGET */

.quote-widget {
  grid-column: 1 / -1;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 249, 231, 0.8);
  color: #987d8e;
}

.quote-widget p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* APP ICONS */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px 8px;
}

.app {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #79566b;
  font-size: 11px;
  text-align: center;
}

.app-icon {
  width: clamp(48px, 14vw, 62px);
  height: clamp(48px, 14vw, 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: white;
  font-size: 29px;
  box-shadow: 0 5px 14px rgba(100, 80, 120, 0.12);
  transition: transform 0.2s ease;
}

.app:active .app-icon {
  transform: scale(0.88);
}

/* ICON COLORS */

.pink {
  background: #e9a9c9;
}

.blue {
  background: #9ccaef;
}

.peach {
  background: #f0c1a2;
}

.purple {
  background: #c7b5ea;
}

.green {
  background: #b6d9c8;
}

.yellow {
  background: #e6c9a1;
}

.rose {
  background: #e9afc1;
}

.sky {
  background: #a9c9ea;
}

/* iOS DOCK */

.home-dock {
  margin-top: auto;
  width: 100%;
  min-height: 76px;
  padding: 12px 20px;
  border-radius: 27px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: #a77e9c;
  font-size: 29px;
}

.home-indicator {
  width: 110px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(90, 70, 90, 0.65);
  align-self: center;
}

/* SMALLER SCREENS */

@media (max-width: 360px) {
  .ios-home {
    padding-left: 14px;
    padding-right: 14px;
    gap: 16px;
  }

  .widget-grid {
    gap: 10px;
  }

  .widget {
    padding: 13px;
    border-radius: 20px;
  }

  .apps-grid {
    gap: 14px 5px;
  }
}

@media (max-height: 720px) {
  .ios-home {
    gap: 14px;
    padding-top: 10px;
  }

  .quote-widget {
    min-height: 85px;
  }

  .home-dock {
    min-height: 65px;
  }
}

/* ======================================
   LETTERS — NYANYIAN SUNYI UNTUK PULANG
====================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,700&display=swap');

#letters-screen {
  background: linear-gradient(
    145deg,
    #f9dce9 0%,
    #fff0eb 55%,
    #dceefb 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 0 0;
  overflow: hidden;
}

/* HEADER DALAM KOTAK */

#letters-screen .letters-header {
  width: calc(100% - 32px);
  max-width: 520px;
  min-height: 58px;
  margin: 0 16px 18px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 5px 20px rgba(164, 91, 128, 0.10);
  backdrop-filter: blur(15px);
  color: #94365c;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  box-sizing: border-box;
}

#letters-screen .letters-back {
  border: none;
  background: #fff0f6;
  color: #a14c76;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
}

#letters-screen .letters-header-heart {
  color: #d37c9e;
  font-size: 22px;
}

/* AREA SCROLL */

#letters-screen .letters-page {
  width: 100%;
  max-width: 560px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 45px;
  box-sizing: border-box;
  scrollbar-width: none;
}

#letters-screen .letters-page::-webkit-scrollbar {
  display: none;
}

/* KERTAS SURAT */

#letters-screen .letters-paper {
  width: 100%;
  padding: 28px 23px 35px;
  background: rgba(255, 255, 255, 0.83);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(174, 99, 136, 0.12);
  box-sizing: border-box;
  animation: letterAppear 0.7s ease both;
}

/* DEKORASI HATI */

#letters-screen .letter-decoration {
  text-align: center;
  color: #df8fac;
  font-size: 18px;
  letter-spacing: 4px;
  margin: 5px 0 22px;
}

/* JUDUL */

#letters-screen .letters-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(23px, 5.5vw, 32px);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #8f244e;
  margin: 0 0 25px;
}

/* FOTO LANDSCAPE 16:9 */

#letters-screen .letter-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 26px;
  background: linear-gradient(
    135deg,
    #f6c5d7,
    #d3e7fa
  );
}

#letters-screen .letter-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PEMBUKA SURAT */

#letters-screen .letter-intro {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
  color: #724658;
  margin: 0 0 3px;
}

/* NAMA SHANE — PINK, BOLD, ITALIC */

#letters-screen .letter-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(27px, 7vw, 37px);
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  color: #d33875;
  text-align: left;
  margin: 0 0 25px;
}

/* ISI SURAT — JUSTIFY */

#letters-screen .letter-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  line-height: 2;
  color: #654454;
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: break-word;
}

#letters-screen .letter-body p {
  margin: 0 0 22px;
  text-align: justify;
  text-indent: 18px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* PENUTUP */

#letters-screen .letter-closing {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  line-height: 1.9;
  color: #654454;
  text-align: left;
  margin: 25px 0 12px;
}

/* SEA AHN LOKA — TULISAN LATIN BIRU */

#letters-screen .letter-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 47px;
  font-weight: 400;
  line-height: 1.5;
  color: #2875c4;
  text-align: left;
  margin: 5px 0 20px;
}

/* PENYESUAIAN LAYAR KECIL */
@media (max-width: 380px) {
  #letters-screen .letters-paper {
    padding: 25px 19px 30px;
  }

  #letters-screen .letter-body {
    font-size: 14px;
    line-height: 1.95;
  }

  #letters-screen .letter-signature {
    font-size: 42px;
  }
}

/* LETTERS — UKURAN LEBIH RAPI */

#letters-screen .letters-header {
  min-height: 50px;
  padding: 9px 15px;
  font-size: 13px;
}

#letters-screen .letters-paper {
  padding: 24px 22px 30px;
}

#letters-screen .letters-title {
  font-size: 24px;
  line-height: 1.4;
}

#letters-screen .letter-intro {
  font-size: 13px;
}

#letters-screen .letter-name {
  font-size: 24px;
  color: #d95b89;
  font-weight: 700;
  font-style: italic;
}

#letters-screen .letter-body,
#letters-screen .letter-body p {
  font-size: 13px;
  line-height: 1.85;
}

#letters-screen .letter-closing {
  font-size: 13px;
}

#letters-screen .letter-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 38px;
  font-weight: 400;
  color: #2875c4;
  letter-spacing: 0;
}

/* ==================================
   LETTERS — SOFT & ELEGANT VERSION
================================== */

/* Judul lebih kecil dan lembut */
#letters-screen .letters-title {
  font-size: 21px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  color: #9d365c;
  margin-bottom: 22px;
}

/* Kalimat pembuka */
#letters-screen .letter-intro {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.9;
  color: #866978;
}

/* Nama Shane: pink, italic, tidak kebesaran */
#letters-screen .letter-name {
  font-size: 21px !important;
  font-weight: 600 !important;
  font-style: italic !important;
  color: #db7298 !important;
  margin-bottom: 20px;
}

/* Isi surat lebih kecil dan ringan */
#letters-screen .letter-body,
#letters-screen .letter-body p {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  color: #806474 !important;
  text-align: justify !important;
  text-justify: inter-word;
}

/* Jarak antarparagraf */
#letters-screen .letter-body p {
  margin-bottom: 20px;
  text-indent: 15px;
}

/* Penutup surat */
#letters-screen .letter-closing {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.9;
  color: #806474;
}

/* TANDA TANGAN LATIN SAMBUNG */
#letters-screen .letter-signature {
  font-family: "Great Vibes", cursive !important;
  font-size: 40px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: 1px !important;
  color: #2875c4 !important;
}

/* ==========================================
   GALLERY APP — PASTEL LIQUID GLASS ♡
========================================== */

#gallery-screen {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #e8d9ef;
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #654c68;
}

/* BLURRED PASTEL BACKGROUND */

.gallery-background {
  position: absolute;
  inset: -40px;
  background:
    radial-gradient(
      circle at 15% 20%,
      #f6bcd9 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 30%,
      #b6d9fb 0%,
      transparent 48%
    ),
    radial-gradient(
      circle at 45% 85%,
      #ffe3b3 0%,
      transparent 55%
    ),
    #f6e9f2;
  filter: blur(35px);
  transform: scale(1.1);
  pointer-events: none;
}

/* GALLERY PAGES */

#gallery-screen .gallery-page {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#gallery-screen .gallery-page.hidden {
  display: none !important;
}

/* FROSTED GLASS HEADER */

#gallery-screen .gallery-header {
  flex-shrink: 0;
  width: calc(100% - 32px);
  margin: 18px 16px 15px;
  padding: 12px 16px;
  min-height: 56px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);

  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;

  box-shadow:
    0 8px 25px rgba(125, 91, 130, 0.10),
    inset 0 1px 1px rgba(255, 255, 255, 0.7);

  font-size: 14px;
  font-weight: 600;
}

#gallery-screen .gallery-back {
  border: none;
  border-radius: 16px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.35);
  color: #875b8b;
  font-size: 13px;
  cursor: pointer;
}

/* ALBUMS CONTENT */

#gallery-screen .gallery-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 22px 55px;
  scrollbar-width: none;
}

#gallery-screen .gallery-content::-webkit-scrollbar,
#gallery-screen .album-detail-content::-webkit-scrollbar {
  display: none;
}

#gallery-screen .gallery-label {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #a17b9c;
  margin-bottom: 8px;
}

#gallery-screen .gallery-content h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  color: #634b70;
  margin: 0 0 7px;
}

#gallery-screen .gallery-subtitle {
  font-size: 12px;
  line-height: 1.6;
  color: #957e99;
  margin-bottom: 30px;
}

/* THREE ALBUMS */

#gallery-screen .albums-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 15px;
}

#gallery-screen .album-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

#gallery-screen .album-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.65);

  box-shadow: 0 10px 22px rgba(119, 86, 135, 0.13);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);

  transition: transform 0.25s ease;
}

#gallery-screen .album-card:active .album-cover {
  transform: scale(0.96);
}

#gallery-screen .album-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#gallery-screen .album-name {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6b526e;
}

#gallery-screen .album-count {
  margin-top: 3px;
  font-size: 11px;
  color: #a18da6;
}

#gallery-screen .gallery-footer {
  margin-top: 35px;
  text-align: center;
  font-size: 11px;
  color: #a58ba4;
}

/* OPENED ALBUM */

#gallery-screen .album-detail-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 16px 50px;
  scrollbar-width: none;
}

#gallery-screen .album-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 25px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 25px rgba(120, 88, 140, 0.13);
}

#gallery-screen .album-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#gallery-screen .album-hero-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 35px 20px 18px;
  background: linear-gradient(
    transparent,
    rgba(40, 28, 50, 0.55)
  );
  color: white;
}

#gallery-screen .album-hero-overlay h1 {
  margin: 0 0 4px;
  font-size: 25px;
  font-weight: 700;
}

#gallery-screen .album-hero-overlay p {
  margin: 0;
  font-size: 12px;
}

/* PHOTOS GRID */

#gallery-screen .album-photos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  margin-top: 20px;
}

#gallery-screen .album-photos-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  cursor: pointer;
  border-radius: 3px;
}

/* FULLSCREEN VIEWER */

#gallery-screen .gallery-viewer {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #d6c8df;
}

#gallery-screen .gallery-viewer.hidden {
  display: none !important;
}

#gallery-screen .viewer-blur-background {
  position: absolute;
  inset: -35px;
  background:
    radial-gradient(circle at 20% 20%, #f8c3da, transparent 55%),
    radial-gradient(circle at 80% 75%, #a9d0f8, transparent 60%),
    #e8d8e8;
  filter: blur(35px);
}

#gallery-screen .viewer-header {
  position: relative;
  z-index: 2;
  margin: 18px 16px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  border-radius: 22px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  font-size: 13px;
  font-weight: 600;
}

#gallery-screen .viewer-header button {
  border: none;
  background: transparent;
  color: #765879;
  font-size: 13px;
  cursor: pointer;
}

#gallery-screen .viewer-image-container {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

#gallery-screen #gallery-viewer-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(80, 60, 100, 0.15);
}

#gallery-screen .gallery-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin: 12px 20px 28px;
  padding: 10px 18px;
  border-radius: 25px;

  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#gallery-screen .gallery-controls button {
  border: none;
  background: rgba(255, 255, 255, 0.35);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #765879;
  font-size: 25px;
  cursor: pointer;
}

#gallery-screen .gallery-controls span {
  font-size: 12px;
  color: #765879;
}

/* =====================================
   IPHONE GALLERY — PHOTO FILMSTRIP
===================================== */

#gallery-screen .gallery-thumbnails {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 5px;

  width: calc(100% - 36px);
  min-height: 58px;
  margin: 0 18px 5px;
  padding: 8px 10px;
  box-sizing: border-box;

  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;

  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
}

#gallery-screen .gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

/* EACH SMALL PHOTO */

#gallery-screen .gallery-thumbnail {
  flex: 0 0 36px;
  width: 36px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.4);
  opacity: 0.55;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

#gallery-screen .gallery-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* CURRENT PHOTO */

#gallery-screen .gallery-thumbnail.active {
  opacity: 1;
  transform: scale(1.12);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
}

/* ===== UNSAID APP ===== */

.unsaid-app {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: linear-gradient(
    160deg,
    #fcecf5 0%,
    #f8f1f8 48%,
    #eaf1ff 100%
  );
  overflow-y: auto;
  font-family: Georgia, serif;
  color: #302b35;
}

.unsaid-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-family: Arial, sans-serif;
}

.unsaid-header button {
  border: none;
  background: none;
  color: #9d6994;
  font-size: 14px;
  cursor: pointer;
}

.unsaid-header span:nth-child(2) {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.5px;
}

.unsaid-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 24px 90px;
}

.unsaid-intro {
  margin-bottom: 28px;
}

.unsaid-label {
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: #aa83a1;
}

.unsaid-intro h1 {
  font-size: 46px;
  font-weight: 500;
  margin: 14px 0;
  letter-spacing: -2px;
}

.unsaid-description {
  font-size: 15px;
  line-height: 1.8;
  color: #776d7b;
}

.unsaid-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid #e8dce6;
  border-bottom: 1px solid #e8dce6;
  margin-bottom: 26px;
}

.unsaid-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0dce9;
  color: #a36b96;
  font-size: 20px;
}

.unsaid-author strong {
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.unsaid-bio {
  font-family: Arial, sans-serif;
  font-size: 12px;
  color: #928593;
  margin-top: 4px;
}

.unsaid-articles {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ===== UNSAID ARTICLE CARDS ===== */

.unsaid-article-card {
  padding: 22px 0;
  border-bottom: 1px solid rgba(160, 125, 155, 0.2);
  cursor: pointer;
  transition: transform 0.25s ease;
}

.unsaid-article-card:active {
  transform: scale(0.98);
}

.unsaid-article-title {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: #302b35;
  margin-bottom: 9px;
}

.unsaid-article-subtitle {
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: #817584;
  margin-bottom: 13px;
}

.unsaid-article-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  color: #a18b9c;
}

.unsaid-article-card:hover .unsaid-article-title {
  color: #ad719d;
}

.unsaid-article-card:first-child {
  padding-top: 4px;
}