/* ================= CSS VARIABLES & DESIGN TOKENS ================= */
:root {
  --bg-gradient: linear-gradient(180deg, #3d1c47 0%, #7b127a 40%, #1e0322 100%);
  --text-primary: #ffffff;
  --accent-green: #72f235;
  --accent-gold: #f3e5ab;
  --panel-bg: rgba(255, 255, 255, 0.12);
  --panel-border: rgba(255, 255, 255, 0.25);
  --font-main: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
  --container-padding: clamp(8px, 2vw, 20px);
  --panel-padding: clamp(16px, 3vw, 36px) clamp(16px, 3vw, 32px);
  --panel-radius: clamp(20px, 2.5vw, 28px);
  --fs-primary-row: clamp(1.8rem, 4vw, 2.8rem);
  --fs-secondary-row: clamp(1.3rem, 2.5vw, 1.9rem);
  --fs-title: clamp(1.15rem, 2vw, 1.5rem);
  --fs-body: clamp(0.75rem, 1.2vw, 0.95rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
}

body {
  background: var(--bg-gradient);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--container-padding);
  overflow-x: hidden;
  width: 100%;
}

.glass-container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
}

.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--panel-radius);
  padding: var(--panel-padding);
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.3);
  transform: translateZ(0);
  will-change: transform;
}

.header {
  position: sticky;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
}

.site-logo {
  height: clamp(38px, 4vw, 48px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.3));
}

.profile-pics {
  display: flex;
  gap: 12px;
}

.circle-avatar {
  width: clamp(38px, 4vw, 48px);
  height: clamp(38px, 4vw, 48px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
}

.circle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-card {
  margin-top: 1rem;
  text-align: center;
  padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 32px);
}

.hero-card h2 {
  font-size: var(--fs-title);
  letter-spacing: 1.5px;
  opacity: 0.95;
}

.timer-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 24px 0;
}

.primary-row {
  font-size: var(--fs-primary-row);
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-primary);
}

.total-days-row {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: var(--accent-gold);
  margin-top: -4px;
  margin-block: 0.5rem;
}

.secondary-row {
  font-size: var(--fs-secondary-row);
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 2.5px;
}

.story-date {
  font-size: var(--fs-body);
  opacity: 0.85;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(8px, 1.5vw, 16px);
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
  margin-top: 2rem;
}

.profile-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.5rem;
  gap: 1rem;
  width: 100%;
  overflow: hidden;
}

.profile-card h3 {
  font-size: clamp(0.7rem, 2.8vw, 1.1rem);
  font-style: italic;
  font-weight: 600;
  margin: 0;
  width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-card p {
  font-size: clamp(0.6rem, 2.2vw, 0.85rem);
  margin: 0;
  opacity: 0.9;
}

.photo-placeholder {
  width: clamp(100px, 18vw, 150px);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.photo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heart-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.heart-icon {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  filter: drop-shadow(0 0 10px rgba(255, 105, 180, 0.8));
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

/* ================= TIMELINE & MEMORIES ================= */
.memories-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 2rem;
  margin-top: 1rem;
  width: 100%;
}

.horizontal-timeline-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 10px 0;
  overflow: hidden;
}

.horizontal-timeline-wrapper::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -100vw;
  right: -100vw;
  height: 3px;
  background: var(--accent-green);
  transform: translateY(-50%);
  z-index: 1;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--accent-green);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition:
    opacity 0.3s ease,
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  opacity: 1;
}

.scroll-arrow.disabled {
  opacity: 0.2;
  pointer-events: none;
  cursor: default;
}

.scroll-arrow:hover {
  background: var(--accent-green);
  color: #1e0322;
  transform: translateY(-50%) scale(1.1);
}

.scroll-left {
  left: 6px;
}
.scroll-right {
  right: 6px;
}

.horizontal-timeline-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 20px 45px;
  width: 100%;
  position: relative;
  scrollbar-width: none;
  z-index: 2;
  cursor: grab;
  user-select: none;
  touch-action: pan-x pan-y;
}

.horizontal-timeline-track.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.horizontal-timeline-track::-webkit-scrollbar {
  display: none;
}

.timeline-col {
  min-width: 300px;
  max-width: 300px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 360px;
  z-index: 2;
  flex-shrink: 0;
}

.timeline-col.top {
  justify-content: flex-start;
}
.timeline-col.top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 160px;
  height: 20px;
  border-left: 2px dashed var(--accent-green);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-col.bottom {
  justify-content: flex-end;
}
.timeline-col.bottom::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 180px;
  height: 20px;
  border-left: 2px dashed var(--accent-green);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-col::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  background: var(--accent-green);
  border: 3px solid #3d1c47;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--accent-green);
  z-index: 5;
}

.timeline-card-compact {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  height: 165px;
  box-sizing: border-box;
  position: relative;
  z-index: 3;
}

.timeline-card-compact:hover {
  transform: translateY(-3px);
  border-color: rgba(114, 242, 53, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.compact-img-box {
  width: 95px;
  height: 135px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.compact-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.compact-img-box:hover img {
  transform: scale(1.08);
}

.compact-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  height: 100%;
  text-align: left;
  min-width: 0;
}

.compact-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.compact-date {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-top: 1px;
}

.compact-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

/* ================= MODAL ================= */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.image-modal.active {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--text-primary);
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--accent-green);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================= FAVORITES SECTION ================= */
.favorites-section {
  margin-top: 2rem;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 3vw, 32px);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.fav-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 2.5vw, 28px);
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  contain: layout style;
  transform: translateZ(0);
}

.fav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.fav-card h3 {
  font-size: clamp(0.9rem, 0.814rem + 0.429vw, 1.2rem);
  letter-spacing: 2px;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fav-list-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.item-cover,
.avatar-img,
.album-art {
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.item-cover {
  width: 65px;
  height: auto;
  aspect-ratio: 2/3;
  border-radius: 10px;
}
.avatar-img {
  width: 60px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
}
.album-art {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.media-item,
.char-info,
.playlist-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  border-radius: 18px;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.media-item:hover,
.char-info:hover,
.playlist-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.media-info,
.track-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 0;
  gap: 0.2rem;
}

.media-info .title,
.track-info .song-title,
.char-info .char-name {
  font-size: clamp(0.6rem, 0.486rem + 0.571vw, 1rem);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-info .year,
.track-info .artist-name,
.char-info .char-movie {
  font-size: clamp(0.5rem, 0.386rem + 0.571vw, 0.9rem);
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-info .studio {
  font-size: clamp(0.5rem, 0.357rem + 0.714vw, 1rem);
  color: var(--accent-gold);
}

.trailer-link {
  display: inline-block;
  font-size: clamp(0.45rem, 0.321rem + 0.643vw, 0.9rem);
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
  margin-right: auto;
  background-color: #159e4c;
  padding: 0.8rem;
  border-radius: 0.6rem;
  border: 1px solid rgb(159, 156, 156);
}

.trailer-link:hover {
  opacity: 0.8;
}

.progress-bar-container {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-green);
  transition: width 0.1s linear;
}

.play-btn {
  background: rgba(114, 242, 53, 0.2);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.play-btn:hover {
  transform: scale(1.1);
  background: var(--accent-green);
  color: #1e0322;
}

.expandable-content {
  display: none;
  flex-direction: column;
  gap: 14px;
}

.fav-card.expanded .expandable-content {
  display: flex;
}

.arrow-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-top: 6px;
}

.arrow-down {
  font-size: 0.9rem;
  color: var(--accent-green);
  display: inline-block;
  transition: transform 0.3s ease;
}

.fav-card.expanded .arrow-down {
  transform: rotate(180deg);
}

/* ================= GALLERY PINBOARD ================= */
.pinboard-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 2rem;
  width: 100%;
}

.pinboard-header {
  text-align: center;
  margin-bottom: 12px;
}

.pinboard-header h2 {
  color: var(--accent-green);
  font-size: var(--fs-title);
  letter-spacing: 1px;
}

.pinboard-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-body);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 12px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-green);
  color: #1e0322;
  border-color: var(--accent-green);
}

.pinboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px 20px;
  padding: 10px 4px;
}

.polaroid-card {
  background: var(--panel-bg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 14px 14px 18px 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  cursor: pointer;
  transform: translateZ(0) rotate(var(--rot, 0deg));
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  border-radius: 16px;
  will-change: transform;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.polaroid-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateZ(0) scale(1.03) rotate(0deg) translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.polaroid-card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.4);
  z-index: 2;
  border-radius: 4px;
}

.card-img-box {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 12px;
}

.card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.card-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-gold);
  background: rgba(243, 229, 171, 0.15);
  padding: 2px 8px;
  border-radius: 6px;
}

.card-date {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 600;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.card-caption {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  font-style: italic;
}

.card-caption::before {
  content: "“";
  color: var(--accent-green);
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 2px;
  vertical-align: middle;
}

.card-caption::after {
  content: "”";
  color: var(--accent-green);
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 2px;
  vertical-align: middle;
}

/* ================= FLOATING WIDGET & PWA MODAL ================= */
#floating-widget {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.floating-menu {
  position: absolute !important;
  bottom: 76px;
  left: 50% !important;
  width: 220px;
  max-width: 80vw;
  background: rgba(30, 3, 34, 0.95);
  border-radius: 20px;
  padding: 12px;
  border: 1px solid var(--panel-border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transform-origin: bottom center;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.floating-menu.hidden {
  opacity: 0 !important;
  transform: translateX(-50%) translateY(10px) scale(0.9) !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.floating-ball {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  user-select: none;
  flex-shrink: 0;
  pointer-events: auto;
}

.floating-ball:hover {
  transform: scale(1.08);
}
.floating-ball:active {
  transform: scale(0.95);
}

.heart-pulse-icon {
  font-size: 26px;
  line-height: 1;
}

.floating-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.floating-menu li {
  width: 100%;
  text-align: center;
}

.floating-menu .nav-link {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.floating-menu .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-green);
}

.install-nav-btn {
  width: 100%;
  background: var(--accent-green);
  color: #1e0322;
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  transition: transform 0.2s ease;
}

.install-nav-btn:hover {
  transform: scale(1.02);
}

.pwa-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.pwa-modal.active {
  display: flex;
}

.pwa-modal-content {
  position: relative;
  max-width: 380px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.pwa-modal-close {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-primary);
}

.pwa-modal-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.pwa-modal-content h3 {
  font-size: 1.25rem;
  color: var(--accent-green);
}
.pwa-modal-content p {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.5;
}

.pwa-action-btn {
  background: var(--accent-green);
  color: #1e0322;
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.pwa-action-btn:hover {
  transform: scale(1.05);
}

.pwa-ios-instructions {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  font-size: 0.8rem;
}

.pwa-ios-instructions ol {
  margin-left: 18px;
  margin-top: 6px;
}
.pwa-ios-instructions li {
  margin-bottom: 4px;
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(180deg, #3d1c47 0%, #1e0322 100%);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeInZoom 0.8s ease forwards;
}

.loading-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.welcome-title {
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--accent-green);
  text-transform: uppercase;
}

.names-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  font-style: italic;
}

.heart-spinner {
  font-size: 2rem;
  margin-top: 10px;
  animation: heartPulse 1.2s infinite ease-in-out;
}

@keyframes heartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .glass-container {
    max-width: 100%;
    gap: 20px;
    overflow: hidden;
  }
  .favorites-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .pinboard-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .polaroid-card {
    transform: translateZ(0) rotate(calc(var(--rot, 0deg) * 0.4));
  }
}
