/* =========================================================
   LUNA styles
   ========================================================= */

/* --- Our colors, saved as "variables" so we can reuse them everywhere.
       Change one here and it changes across the whole app. --- */
:root {
  --bg: #000;                             /* complete black */
  --phone-bg: #000;
  --surface: rgba(255, 255, 255, 0.05);   /* see-through "glass" boxes */
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f3ff;
  --muted: #8f8aa8;                       /* softer grey-purple text */

  --violet: #8b5cf6;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --neon: linear-gradient(120deg, var(--violet), var(--pink) 50%, var(--cyan));
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;          /* puts the phone in the middle of the window */
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, sans-serif;
  overflow: hidden;
}

button { font: inherit; color: inherit; cursor: pointer; }

/* Every icon: drawn with lines, no fill */
svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Glowing blobs behind the phone --- */
.aurora { position: fixed; inset: 0; pointer-events: none; transition: opacity 0.6s; }

/* On the profile tab, everything goes pure black: blobs fade out, glows switch off */
body.profile-mode .aurora { opacity: 0; }
body.profile-mode .phone { box-shadow: 0 0 0 10px #111; }
body.profile-mode .phone::before { opacity: 0; }

.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: float 16s ease-in-out infinite alternate;
}
.blob-1 { background: var(--violet); top: -10%; left: 10%; }
.blob-2 { background: var(--pink);   bottom: -15%; right: 8%; animation-delay: -5s; }
.blob-3 { background: var(--cyan);   top: 40%; left: 55%; width: 300px; height: 300px; opacity: 0.25; animation-delay: -10s; }

@keyframes float {
  to { transform: translate(60px, -40px) scale(1.15); }
}

/* --- The phone --- */
.phone {
  position: relative;
  width: 390px;
  height: min(844px, calc(100dvh - 48px));
  border-radius: 48px;
  background: var(--phone-bg);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 10px #131221,                     /* the phone's edge */
    0 40px 120px rgba(139, 92, 246, 0.35);  /* purple glow under it */
  overflow: hidden;
  overflow: clip;       /* like "hidden", but the phone box itself can never be scrolled */
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.6s;
}

/* A soft purple light shining down from the top of the screen */
.phone::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 260px;
  background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.25), transparent 70%);
  pointer-events: none;
  transition: opacity 0.6s;
}

/* On a real phone: fill the whole screen instead of drawing a fake phone */
@media (max-width: 480px) {
  body { display: block; }
  .aurora { display: none; }
  .phone {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
}

/* --- Screens --- */
.screens { position: relative; flex: 1; }

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 24px 20px 120px;     /* extra space at the bottom so the tab bar doesn't cover things */
  display: none;
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }

.screen.active {
  display: block;
  animation: screen-in 0.35s ease;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* --- Top bar of each screen --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  min-height: 44px;
}

.topbar-actions { display: flex; gap: 10px; }

/* The LUNA logo ("Moon cup"): white letters, and the "U" is a glowing neon crescent.
   Sizes use "em", so the cup grows and shrinks with the font size. */
.logo {
  display: flex;
  align-items: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.logo .logo-cup {
  width: 1.3em;
  height: 0.91em;
  margin: 0.06em 0.1em 0 0.02em;
  fill: url(#luna-neon);
  stroke: none;
  filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.55));
}

.screen-title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 22px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform 0.2s, background 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn:active { transform: scale(0.9); }

/* The little pink "you have a notification" dot */
.dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}
.dot[hidden] { display: none; }

/* --- Notifications --- */
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -10px;
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
  animation: screen-in 0.35s ease both;
}
.activity-row:hover { background: rgba(255, 255, 255, 0.03); }
/* New (unseen) ones get a soft purple highlight */
.activity-row.unread { background: rgba(139, 92, 246, 0.1); }
.activity-row .avatar { width: 46px; height: 46px; flex-shrink: 0; }
.activity-text { flex: 1; margin: 0; font-size: 14px; line-height: 1.4; }
.activity-text b { font-weight: 600; }
.activity-time { color: var(--muted); font-size: 13px; white-space: nowrap; }
.activity-thumb {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(236, 72, 153, 0.4);
}
.activity-row .follow-btn { height: 32px; padding: 0 14px; }

/* --- Comments panel --- */
.comments-panel {
  position: absolute;
  inset: 0;
  z-index: 39;            /* above the photo viewer, so comments can open on top of a big photo */
}
.comments-panel[hidden] { display: none; }
.comments-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: fade-in 0.25s ease;
}
.comments-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75%;
  display: flex;
  flex-direction: column;
  padding-top: 12px;
  border-radius: 28px 28px 0 0;
  background: #100e18;
  border-top: 1px solid var(--border);
  animation: comments-up 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes comments-up { from { transform: translateY(100%); } }

.comments-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 10px;
  border-bottom: 1px solid var(--border);
}
.comments-top h3 { margin: 0; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 16px; }
.comments-top .icon-btn { width: 36px; height: 36px; }

.comments-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px;
  scrollbar-width: none;
}
.comments-list::-webkit-scrollbar { display: none; }
.comments-empty { margin-top: 40px; text-align: center; color: var(--muted); }

.comment { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; animation: screen-in 0.3s ease both; }
.comment .avatar { width: 34px; height: 34px; flex-shrink: 0; cursor: pointer; }
.comment-body { flex: 1; min-width: 0; }
.comment-body p { margin: 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.comment-body b { font-weight: 600; cursor: pointer; }
.comment-time { color: var(--muted); font-size: 12px; }
.comment-delete { padding: 4px; background: none; border: none; color: var(--muted); }
.comment-delete svg { width: 17px; height: 17px; }
.comment-delete:hover { color: #fda4af; }

/* The "Add a comment…" bar at the bottom */
.comment-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--border);
}
.comment-form .avatar { width: 34px; height: 34px; flex-shrink: 0; }
.comment-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.comment-form input:focus { border-color: var(--violet); }
.comment-send {
  padding: 6px 4px;
  background: none;
  border: none;
  color: #f0abfc;
  font-weight: 700;
  font-size: 15px;
}
.comment-send:disabled { opacity: 0.4; }

/* --- Search bar --- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-bar:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18), 0 0 24px rgba(139, 92, 246, 0.3);
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.search-bar input::placeholder { color: var(--muted); }

/* --- Category chips (Explore) --- */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -20px;      /* let the chips scroll right to the phone's edges */
  padding: 0 20px 4px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.25s;
}
.chip.active {
  background: var(--neon);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

.clear-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}
.clear-btn[hidden] { display: none; }
.clear-btn svg { width: 13px; height: 13px; stroke-width: 2.4; }

/* =========================================================
   SEARCH RESULTS
   ========================================================= */

.section-title {
  margin: 24px 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* One row in the results: a person or a tag */
.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
  background: none;
  border: none;
  text-align: left;
  animation: screen-in 0.35s ease both;
}
.result-row .avatar { width: 50px; height: 50px; flex-shrink: 0; }
.result-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.result-title { font-size: 15px; font-weight: 600; }
.result-sub {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The part of a name that matches what you typed */
.search-hit { color: #f0abfc; }

/* Round "#" badge in front of each tag */
.tag-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 20px;
}
.tag-icon span {
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tag-row > svg { width: 18px; height: 18px; color: var(--muted); }
.tag-row:hover .result-title { color: #f0abfc; }

.follow-btn {
  flex-shrink: 0;
  height: 34px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--neon);
  color: white;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.35);
  transition: transform 0.2s;
}
.follow-btn:active { transform: scale(0.92); }
.follow-btn.following {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: none;
}

/* The page you see after tapping a tag */
.tag-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 6px;
}
.tag-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 24px;
  background: var(--neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tappable hashtags in feed captions */
.caption .tag { cursor: pointer; }
.caption .tag:hover { text-decoration: underline; }

/* --- Floating tab bar --- */
.tabbar {
  --index: 0;           /* which tab is active (0, 1, 2 or 3). JavaScript changes this. */
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  height: 70px;
  border-radius: 28px;
  background: rgba(20, 18, 34, 0.72);
  backdrop-filter: blur(20px) saturate(160%);   /* frosted glass: blurs what's behind it */
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.tab {
  position: relative;
  z-index: 1;           /* sit on top of the glow */
  background: none;
  border: none;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: color 0.3s;
}
.tab svg { width: 26px; height: 26px; transition: transform 0.2s; }
.tab:hover { color: var(--text); }
.tab:active svg { transform: scale(0.82); }
.tab.active { color: white; }

/* The glowing pill that slides behind the active tab */
.tab-glow {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 20%;           /* one slot out of 5 */
  display: flex;
  justify-content: center;
  transform: translateX(calc(var(--index) * 100%));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);   /* a little bounce */
}
.tab-glow::before {
  content: "";
  width: 58px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Dark pill with faint purple and teal tints that slowly drift across it */
  background: linear-gradient(120deg, #141218 0%, #2a1638 30%, #0f2530 60%, #141218 100%);
  background-size: 300% 100%;
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.18);
  animation: pill-flow 6s ease-in-out infinite alternate;
}
@keyframes pill-flow {
  to { background-position: 100% 0; }
}

/* The big ➕ button in the middle of the tab bar */
.create-btn {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: none;
  background: var(--neon);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 0 26px rgba(236, 72, 153, 0.6);
  transition: transform 0.2s;
}
.create-btn svg { width: 28px; height: 28px; stroke-width: 2.4; }
.create-btn:hover { transform: rotate(90deg); }
.create-btn:active { transform: scale(0.88); }

/* =========================================================
   HOME FEED
   ========================================================= */

/* --- Stories row --- */
.stories {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  margin: 0 -20px 12px;
  padding: 4px 20px 16px;
  scrollbar-width: none;
}
.stories::-webkit-scrollbar { display: none; }

.story {
  flex-shrink: 0;
  width: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
}

/* The gradient ring is a gradient circle with the photo sitting on top of it */
.story-ring {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  padding: 3px;
  background: var(--neon);
  transition: background 0.4s, transform 0.2s;
}
.story:active .story-ring { transform: scale(0.92); }
.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--phone-bg);
  display: block;
  background: #1c1a2b;
}
.story.seen .story-ring { background: rgba(255, 255, 255, 0.15); }

.story-name {
  max-width: 70px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Your own story: no ring yet, just a little ➕ badge */
.story.mine .story-ring { background: rgba(255, 255, 255, 0.1); }
/* When you HAVE a story, your bubble gets the neon ring too */
.story.mine.has-story .story-ring { background: var(--neon); }
/* No stories row at all while nobody is logged in */
.stories:empty { display: none; }
.story-plus {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--neon);
  border: 3px solid var(--phone-bg);
  display: grid;
  place-items: center;
}
.story-plus svg { width: 12px; height: 12px; stroke-width: 3; color: white; }

/* --- A post --- */
.post { margin-bottom: 30px; animation: screen-in 0.5s ease both; }

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  padding: 2px;
  background: var(--neon);
}
.post-user { font-weight: 600; font-size: 15px; }
.post-meta { font-size: 12.5px; color: var(--muted); }
.more-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  padding: 6px;
}

/* The neon frame, used on every photo in the app.
   The trick: two backgrounds stacked. The dark one fills the inside ("padding-box"),
   the neon gradient fills everything including the border ("border-box").
   The border is see-through, so the gradient shows through it as a colored line.
   While the photo loads, a soft light sweeps across the dark inside ("shimmer"). */
.neon-frame {
  border: 1.5px solid transparent;
  background:
    linear-gradient(110deg, #0b0b0f 30%, #18171f 50%, #0b0b0f 70%) padding-box,
    var(--neon) border-box;
  background-size: 200% 100%, 100% 100%;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.22), 0 0 34px rgba(139, 92, 246, 0.16);
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0, 0 0; } }

/* The photo box in a feed post */
.post-media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  user-select: none;
}

.post-media img,
.post-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* fill the frame, trimming the edges if the shape is different */
  display: block;
  opacity: 0;
  transition: opacity 0.6s;
}
.post-media img.loaded,
.post-media video.loaded { opacity: 1; }
.post-media img[hidden],
.post-media video[hidden],
.sound-btn[hidden] { display: none; }

/* The 🔊 button in the corner of a video */
.sound-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  display: grid;
  place-items: center;
}
.sound-btn svg { width: 18px; height: 18px; }
.sound-btn:active { transform: scale(0.9); }

/* "▶ 0:15" label on video posts */
.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 600;
}
.video-badge svg { width: 14px; height: 14px; fill: white; stroke: none; }

/* The big heart that pops when you double-tap a photo */
.big-heart {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.big-heart svg {
  width: 100px;
  height: 100px;
  fill: white;
  stroke: none;
  filter: drop-shadow(0 0 20px var(--pink)) drop-shadow(0 0 40px var(--violet));
  opacity: 0;
}
.post-media.pop .big-heart svg { animation: heart-pop 0.9s ease forwards; }

@keyframes heart-pop {
  0%   { transform: scale(0);    opacity: 0; }
  15%  { transform: scale(1.25); opacity: 1; }
  30%  { transform: scale(0.95); }
  45%  { transform: scale(1.05); }
  80%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(1.3);  opacity: 0; }
}

/* --- Like / comment / share / save row --- */
.post-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 10px -8px 4px;
}
.action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 600;
}
.action svg { width: 25px; height: 25px; transition: transform 0.2s; }
.action:active svg { transform: scale(0.8); }
.action.save { margin-left: auto; }

.action.like.liked { color: var(--pink); }
.action.like.liked svg {
  fill: var(--pink);
  filter: drop-shadow(0 0 8px var(--pink));
  animation: like-bounce 0.4s ease;
}
.action.save.saved svg { fill: currentColor; }

@keyframes like-bounce {
  40% { transform: scale(1.35); }
  70% { transform: scale(0.9); }
}

.caption {
  margin: 0 0 4px;
  font-size: 14.5px;
  line-height: 1.45;
}
.caption b { font-weight: 600; margin-right: 4px; }
.tag { color: #f0abfc; }   /* hashtags in soft pink */
.post-time { font-size: 12.5px; color: var(--muted); }

/* =========================================================
   PROFILE
   ========================================================= */

.profile-hero { text-align: center; }

/* The profile picture with a slowly spinning neon ring around it */
.profile-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.45), 0 0 60px rgba(139, 92, 246, 0.3);
}
.profile-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* The person's aura colors once they've posted (aura-colors.js sets --ring).
     Before that: neon green + pink, the same ring @luna has (the user's pick). */
  background: var(--ring, conic-gradient(#00ff6f, #ff00ee, #00ff58, #00ff6f));
  animation: spin 6s linear infinite;
}

/* --- Aura (profiles only) --- */
.aura-card {
  position: relative;
  margin: 18px 0 4px;
  padding: 16px 18px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: screen-in 0.5s ease both;
}
/* The glowing color cloud behind the card's text */
.aura-blob {
  position: absolute;
  inset: -30%;
  background: var(--aura);
  filter: blur(34px);
  opacity: 0.85;
}
.aura-card > :not(.aura-blob) { position: relative; }
.aura-title { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.9; }
.aura-words { margin-top: 4px; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 16px; }
.aura-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.aura-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 12px;
}
.aura-chip b { width: 14px; height: 14px; border-radius: 50%; }

/* Posts on a profile glow in their own aura: a gradient border + a soft glow */
.tile.aura-tile {
  border-width: 2px;
  background: linear-gradient(#0b0b0f, #0b0b0f) padding-box, var(--aura) border-box;
  box-shadow: 0 0 16px var(--aura-glow);
}
.profile-avatar img {
  position: relative;          /* sits on top of the spinning ring */
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--phone-bg);
  display: block;
  background: #1c1a2b;
}
@keyframes spin { to { transform: rotate(360deg); } }

.profile-name {
  margin: 0 0 2px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 19px;
}
.profile-handle { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.profile-stats  { margin: 0; color: var(--muted); font-size: 13.5px; }
.profile-stats b { color: var(--text); font-weight: 600; }

/* --- Profile buttons: Share profile (calm, dark) and Log in to follow (bright) --- */
.profile-cta { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
/* On profiles, Follow matches the Share pill's size */
.profile-cta .follow-btn { height: 36px; padding: 0 24px; border-radius: 999px; }

/* --- Home feed: "✨ Discover" heading and the "follow people" hint --- */
/* =========================================================
   HOME: "Tonight's issue"
   ========================================================= */

/* The glow behind the top of Home, in the cover photo's colors.
   "isolation" lets it sit behind Home's content without disappearing behind the phone. */
#home { isolation: isolate; overflow-x: hidden; }
.home-glow {
  position: absolute;
  z-index: -1;
  top: -40px;
  left: -20%;
  width: 140%;
  height: 520px;
  background-position: center;
  background-size: cover;
  filter: blur(50px) saturate(1.7);
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
.home-glow[hidden] { display: none; }

.issue-head { display: flex; align-items: baseline; justify-content: space-between; margin: -4px 0 12px; }
.issue-head b { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 17px; }
.issue-head span { color: rgba(245, 243, 255, 0.7); font-size: 12px; }

/* The cover: a magazine cover with the person's name in huge letters */
.cover {
  position: relative;
  display: block;
  width: 100%;
  height: 360px;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: #111;
  color: white;
  text-align: left;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  animation: screen-in 0.4s ease both;
}
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s, transform 0.6s; }
.cover img.loaded { opacity: 1; }
.cover:active img { transform: scale(1.03); }
/* Dark at the top and bottom, so the words are easy to read */
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.3), transparent 32%, transparent 52%, rgba(0, 0, 0, 0.8)); }
.cover > span { position: absolute; z-index: 1; }
.cover-mast { top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; }
.cover-name {
  top: 30px;
  left: 14px;
  right: 14px;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 58px;
  line-height: 0.95;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}
.cover-name.medium { font-size: 42px; }
.cover-name.small { font-size: 30px; }
.cover-lines { left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cover-user { font-size: 14px; font-weight: 600; }
.cover-user .verified { width: 15px; height: 15px; vertical-align: -2px; }
.cover-caption { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, 0.88); }
.cover-pill { margin-top: 4px; padding: 4px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); font-size: 11px; font-weight: 700; }

/* Section titles: "Out tonight", "Fresh from friends", "Discover" */
.home-section { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 0 10px; font-size: 15px; font-weight: 600; }
.home-section span { color: var(--muted); font-size: 12px; font-weight: 400; }
#real-feed .mosaic { margin-top: 0; }

/* "You're caught up with friends 🌙" */
.caught-up { margin: 18px 0 2px; padding: 15px; border-radius: 18px; text-align: center; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.caught-up b { display: block; margin-bottom: 2px; color: var(--text); font-size: 14px; }

.feed-section {
  margin: 6px 0 18px;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.feed-hint {
  margin: 0 0 24px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(120deg, #141218 0%, #2a1638 30%, #0f2530 60%, #141218 100%);
  background-size: 300% 100%;
  animation: pill-flow 6s ease-in-out infinite alternate;
  font-size: 13.5px;
  font-weight: 600;
}
.share-btn svg { width: 16px; height: 16px; }
.share-btn:active { transform: scale(0.95); }

.join-btn {
  height: 46px;
  padding: 0 24px;
  border: none;
  border-radius: 16px;
  background: var(--neon);
  color: white;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 22px rgba(236, 72, 153, 0.4);
}
.join-btn:active { transform: scale(0.96); }

.profile-loading { margin-top: 60px; text-align: center; color: var(--muted); }

/* Someone else's profile: "@username" in the middle of the top bar */
.user-title { font-size: 17px; }
.topbar-spacer { width: 42px; }

/* --- What visitors see (not logged in) --- */
.visitor-screen {
  position: absolute;
  inset: 0;
  z-index: 35;            /* above the app, below the log in screen */
  overflow-y: auto;
  padding: 24px 20px 40px;
  background: #000;
  scrollbar-width: none;
}
.visitor-screen::-webkit-scrollbar { display: none; }
.visitor-screen[hidden] { display: none; }
.visitor-login {
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--neon);
  color: white;
  font-weight: 600;
  font-size: 14px;
}

/* "← Back to @username" on the log in screen */
.auth-back {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
}
.auth-back:hover { color: var(--text); }
.auth-back[hidden] { display: none; }

/* --- Images / Videos / Saved text tabs --- */
.profile-tabs {
  --index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 270px;
  margin: 26px auto 24px;
}
.profile-tab {
  padding: 6px 0 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.3s;
}
.profile-tab.active { color: var(--text); }

/* The short neon line that slides under the active tab */
.profile-tab-glow {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% / 3);
  height: 3px;
  display: flex;
  justify-content: center;
  transform: translateX(calc(var(--index) * 100%));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.profile-tab-glow::before {
  content: "";
  width: 28px;
  border-radius: 99px;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.7);
}

/* --- The staggered gallery ---
   Two columns side by side. The right one starts lower, so the photos never line up in rows. */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gallery-col:last-child { padding-top: 32px; }

/* =========================================================
   EXPLORE
   ========================================================= */

/* --- The big "Trending now" card --- */
.trend-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0 12px;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  text-align: left;
  color: white;
}
.trend-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s, transform 0.6s;
}
.trend-card img.loaded { opacity: 1; }
.trend-card:hover img { transform: scale(1.04); }

/* Dark fade at the bottom so the white text is easy to read */
.trend-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 35%, rgba(0, 0, 0, 0.8));
}
.trend-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px;
  font-weight: 600;
}
.trend-text {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.trend-tag {
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 22px;
  text-shadow: 0 0 18px rgba(236, 72, 153, 0.8);
}
.trend-sub { font-size: 13px; color: #d6d3e8; }

/* Rotating trends: fade out, swap, fade back in */
.trend-text { transition: opacity 0.3s; }
.trend-card.swapping img,
.trend-card.swapping .trend-text { opacity: 0; }

/* Little dots showing which trend is showing */
.trend-dots {
  position: absolute;
  right: 14px;
  bottom: 18px;
  display: flex;
  gap: 5px;
}
.trend-dots i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.3s, background 0.3s;
}
.trend-dots i.on { width: 18px; background: var(--neon); }

/* --- The 3-column mosaic ---
   Columns start at different heights, so the photos never line up in rows. */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 14px;
}
.explore-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.explore-col:nth-child(2) { padding-top: 26px; }
.explore-col:nth-child(3) { padding-top: 12px; }
.explore-grid .tile { border-radius: 12px; }

/* --- Explore mosaic (design F): big, tall, wide and small tiles in 3 columns --- */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 104px;           /* one "small" tile is one row tall */
  grid-auto-flow: dense;           /* fill any gap with the next tile that fits */
  gap: 6px;
  margin-top: 14px;
}
.mosaic-cell { position: relative; min-width: 0; }
.mosaic-cell.big  { grid-column: span 2; grid-row: span 2; }
.mosaic-cell.tall { grid-row: span 2; }
.mosaic-cell.wide { grid-column: span 2; }
/* The tile fills its whole cell (instead of keeping its own shape) */
.mosaic-cell .tile {
  width: 100% !important;
  height: 100%;
  aspect-ratio: auto !important;
  border-radius: 12px;
}
/* The most-loved spots glow a bit more (in their aura colors when the photo has them) */
.mosaic-cell.big .tile:not(.aura-tile) { box-shadow: 0 0 18px rgba(236, 72, 153, 0.3); }
.mosaic-cell.big .tile.aura-tile { box-shadow: 0 0 26px var(--aura-glow); }
/* "maya.wav" label on big and wide tiles. Taps go through it to the photo. */
.mosaic-who {
  position: absolute;
  left: 7px;
  bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 14px);
  padding: 3px 9px 3px 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.mosaic-who img { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }

/* One photo frame. Its width, shape and which side it leans to come from app.js. */
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  animation: shimmer 1.4s linear infinite, tile-in 0.5s ease both;
}

@keyframes tile-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: none; }
}

.tile img,
.tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s, transform 0.5s;
}
.tile img.loaded,
.tile video.loaded { opacity: 1; }
.tile:hover img,
.tile:hover video { transform: scale(1.07); }

/* Small ▶ circle on video tiles */
.tile-video {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}
.tile-video svg { width: 12px; height: 12px; fill: white; stroke: none; }

/* Like count at the bottom of a tile, shown when you hover */
.tile-likes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 26px 10px 9px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s;
}
.tile-likes svg { width: 14px; height: 14px; fill: white; stroke: none; }
.tile:hover .tile-likes { opacity: 1; }

/* When a list is empty (like Saved, before you've saved anything) */
.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.empty-state .orb {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
}
.empty-state h4 { margin: 0 0 6px; color: var(--text); font-size: 17px; font-weight: 600; }
.empty-state p { margin: 0; line-height: 1.5; font-size: 14px; }

/* =========================================================
   PHOTO VIEWER + STORY VIEWER
   ========================================================= */

/* Things with the "hidden" attribute must stay hidden, even if they have a display rule */
.photo-viewer[hidden],
.story-viewer[hidden],
.video-badge[hidden] { display: none; }

@keyframes fade-in    { from { opacity: 0; } }
@keyframes viewer-pop { from { opacity: 0; transform: scale(0.85); } }

/* --- Photo viewer --- */
.photo-viewer {
  position: absolute;
  inset: 0;
  z-index: 36;            /* above the visitor screen, so visitors can open posts too */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fade-in 0.25s ease;
}
.viewer-close { position: absolute; top: 20px; right: 20px; }
.viewer-frame {
  width: 100%;
  animation: viewer-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.viewer-bar { display: flex; align-items: center; margin: 0 -8px; }
.viewer-more { margin-left: auto; }

/* The whole viewer glows in the photo's colors (design N) */
.photo-viewer { isolation: isolate; overflow: hidden; }
.viewer-glow {
  position: absolute;
  z-index: -1;
  inset: -80px;
  filter: blur(54px) saturate(1.7);
  opacity: 0.6;
  pointer-events: none;
}

/* Who posted it: picture + name + time (tap to open their profile) */
.viewer-head { display: flex; align-items: center; gap: 10px; align-self: flex-start; padding: 0; border: none; background: none; color: var(--text); text-align: left; }
.viewer-head .avatar { width: 38px; height: 38px; border: 1.5px solid rgba(255, 255, 255, 0.8); }
.viewer-head span { display: flex; flex-direction: column; }
.viewer-head b { font-size: 15px; font-weight: 600; }
.viewer-head small { color: rgba(245, 243, 255, 0.7); font-size: 12px; }

.viewer-caption { margin: -2px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.viewer-caption:empty { display: none; }

/* --- Story viewer --- */
.story-viewer {
  position: absolute;
  inset: 0;
  z-index: 16;
  overflow: hidden;
  background: #000;
  animation: viewer-pop 0.3s ease;   /* zooms in when a story opens */
}

/* Dark fade at the top so the bars and name are easy to see */
.story-viewer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}
.story-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-bars {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 4px;
  padding: 16px 14px 0;
}
.story-bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.story-fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--neon);
  box-shadow: 0 0 8px var(--pink);
}
.story-fill.done   { width: 100%; }
.story-fill.active { animation: story-progress 5s linear forwards; }   /* fills up in 5 seconds */
@keyframes story-progress { to { width: 100%; } }

.story-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}
.story-top .avatar { width: 36px; height: 36px; }
.story-user { font-weight: 600; font-size: 14.5px; }
.story-age  { color: rgba(255, 255, 255, 0.7); font-size: 13px; }
.story-close {
  margin-left: auto;
  padding: 6px;
  background: none;
  border: none;
  color: white;
}
.story-user { display: inline-flex; align-items: center; }

/* 🗑 on your own story (it sits before the ✕, so it takes the "push right" space) */
.story-delete {
  margin-left: auto;
  padding: 6px;
  background: none;
  border: none;
  color: white;
}
.story-delete[hidden] { display: none; }
.story-delete:not([hidden]) + .story-close { margin-left: 0; }

/* Your own story: "👁 Seen by 3" and "＋ Add to story" at the bottom */
.story-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 18px 26px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}
.story-bottom[hidden] { display: none; }
.story-seen { font-size: 14px; font-weight: 600; }
.story-add {
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  font-weight: 600;
  font-size: 14px;
}

/* The invisible left/right tap areas */
.story-tap {
  position: absolute;
  top: 80px;
  bottom: 0;
  z-index: 1;
  padding: 0;
  background: none;
  border: none;
}
.story-prev { left: 0;  width: 35%; }
.story-next { right: 0; width: 65%; }

/* =========================================================
   CREATE SHEET + TOAST
   ========================================================= */

/* The dark see-through layer behind the sheet */
.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;      /* can't be clicked while hidden */
  transition: opacity 0.3s;
}

/* The panel itself, hidden below the screen until opened */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  padding: 12px 20px 40px;
  border-radius: 32px 32px 0 0;
  background: #14121f;
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  visibility: hidden;      /* fully hidden while closed, so it can't be reached by accident */
  transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1), visibility 0.45s;
}

/* "sheet-open" shows the Create panel, "account-open" shows the Account panel */
.phone.sheet-open #sheet-backdrop,
.phone.account-open #account-backdrop,
.phone.action-open #action-backdrop { opacity: 1; pointer-events: auto; }
.phone.sheet-open #create-sheet,
.phone.account-open #account-sheet,
.phone.action-open #action-sheet { transform: none; visibility: visible; }

/* The post menu's buttons ("Delete post", "Report post", report reasons...) */
.action-list { display: flex; flex-direction: column; gap: 10px; }
.action-item {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
}
.action-item:active { transform: scale(0.97); }
.action-item.danger {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
}
.action-note { margin: -8px 0 16px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* =========================================================
   NEW POST SCREEN
   ========================================================= */

.composer {
  position: absolute;
  inset: 0;
  z-index: 37;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 30px;
  overflow-y: auto;
  background: #000;
  scrollbar-width: none;
}
.composer::-webkit-scrollbar { display: none; }
.composer[hidden] { display: none; }

.composer-top { display: flex; align-items: center; justify-content: space-between; }
.composer-title { margin: 0; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 17px; }
.composer-share {
  height: 38px;
  padding: 0 20px;
  border: none;
  border-radius: 999px;
  background: var(--neon);
  color: white;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(236, 72, 153, 0.4);
}
.composer-share:disabled { opacity: 0.5; }

/* The preview: always its real shape. posts.js makes tall ones narrower, so they're never too tall. */
.composer-media { flex-shrink: 0; width: 100%; align-self: center; }
.composer-media img,
.composer-media video { opacity: 1; }

/* --- Filters (VSCO-style) --- */
.composer-media canvas.filter-preview { display: block; width: 100%; height: 100%; object-fit: cover; }

/* The filter's name flashing on the photo when you switch ("Moonlight") */
.composer-media { position: relative; }
.filter-flash {
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.filter-flash.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* The glow behind the photo: a tiny copy of it, blurred and stretched, fading out downwards */
.composer { overflow-x: hidden; }
.composer > :not(.composer-glow) { position: relative; z-index: 1; }
.composer-glow {
  position: absolute;
  top: 0;
  left: -20%;
  width: 140%;
  height: 560px;
  filter: blur(48px) saturate(1.8);
  opacity: 0.55;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
}
.composer-glow[hidden] { display: none; }

/* The tools under the photo: a dark see-through panel, like VSCO's editor */
.filter-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  margin: 0 -20px;
  padding: 12px 0 10px;
  background: rgba(11, 10, 16, 0.78);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.filter-tools[hidden] { display: none; }
.filter-presets { display: flex; flex-direction: column; gap: 10px; }
.filter-presets[hidden] { display: none; }

/* Family tabs: All, Favorites, Night, Film, Warm, B&W */
.filter-families { display: flex; gap: 6px; overflow-x: auto; padding: 0 20px; scrollbar-width: none; }
.filter-families::-webkit-scrollbar { display: none; }
.filter-family {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.filter-family i { width: 8px; height: 8px; border-radius: 50%; }
.filter-family.active { background: rgba(139, 92, 246, 0.25); color: var(--text); }

/* 1. The row of tall previews you can scroll sideways */
.filter-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 20px 2px;     /* room on top for the chosen card to lift */
  scrollbar-width: none;
}
.filter-strip::-webkit-scrollbar { display: none; }

.filter-option {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 0;
  background: none;
  border: none;
  opacity: 0.55;              /* the ones you haven't picked are dimmed... */
  transition: opacity 0.2s, transform 0.25s;
  -webkit-touch-callout: none;   /* no iPhone pop-up menu on long-press */
  user-select: none;
}
.filter-option[hidden] { display: none; }
/* ...and the chosen one lifts up, bright */
.filter-option.active { opacity: 1; transform: translateY(-7px); }
.filter-option canvas {
  width: 78px;
  height: 104px;
  object-fit: cover;
  border-radius: 6px;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.filter-option:active canvas { transform: scale(0.95); }
/* The chosen one: a thin neon frame with a gap, and a glow underneath */
.filter-option.active canvas {
  outline-color: #ec4899;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.5);
}
.filter-label { display: flex; align-items: center; gap: 4px; height: 20px; }

/* ⭐ on favorite filters */
.filter-fav {
  position: absolute;
  top: 5px;
  right: 5px;
  display: none;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  font-size: 11px;
}
.filter-option.favorite .filter-fav { display: grid; }

/* An empty Favorites tab */
.filter-hint { align-self: center; margin: 0 0 0 6px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.filter-hint[hidden] { display: none; }

/* The colored code tag ("ML1"). Its color comes from the filter (--tag). */
.filter-tag {
  display: inline-flex;          /* code and strength side by side, never on two lines */
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 40px;
  height: 19px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--tag);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.filter-tag.dark { color: #111; }
.filter-tag .amt { margin-left: 3px; font-weight: 600; letter-spacing: 0; opacity: 0.9; }   /* "· 55" */

/* The little slider icon next to the chosen filter's tag (tap it, or the photo again, for strength) */
.filter-adjust { display: none; color: var(--text); }
.filter-adjust svg { width: 18px; height: 18px; }
.filter-option.active:not([data-id="original"]) .filter-adjust { display: grid; }

/* 2. The strength panel */
.filter-strength { display: flex; flex-direction: column; gap: 14px; padding: 4px 20px; }
.filter-strength[hidden] { display: none; }
.strength-head { display: flex; align-items: center; gap: 10px; }
.strength-head b { flex: 1; font-size: 15px; font-weight: 600; }
.filter-amount-label { font-family: "Unbounded", sans-serif; font-size: 15px; font-weight: 600; }
.filter-strength input { width: 100%; accent-color: #ec4899; }
.strength-actions { display: flex; justify-content: space-between; }
.strength-actions button {
  width: 44px;
  height: 36px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text);
}
.strength-actions button svg { width: 22px; height: 22px; }
.strength-actions button:active { background: var(--surface); }

/* 3. The two tool buttons at the bottom: Filters and Strength */
.filter-modes { display: flex; justify-content: center; gap: 6px; }
.filter-mode {
  width: 44px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.filter-mode svg { width: 21px; height: 21px; }
.filter-mode.active { background: rgba(139, 92, 246, 0.22); color: var(--text); }
.filter-mode:disabled { opacity: 0.3; }

/* Before / after: the original photo on top, cut off at the line (--split) */
.filter-compare-layer { position: absolute; inset: 0; z-index: 2; cursor: ew-resize; touch-action: none; }
.filter-compare-layer[hidden] { display: none; }
.filter-compare-layer canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);   /* only show the part LEFT of the line */
}
.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.compare-tag {
  position: absolute;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 11px;
  font-weight: 600;
}
.compare-tag.before { left: 10px; }
.compare-tag.after { right: 10px; }

.composer-caption {
  min-height: 90px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
  resize: none;
  outline: none;
}
.composer-caption:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18); }
.composer-caption::placeholder { color: var(--muted); }

.composer-foot { display: flex; align-items: flex-start; gap: 10px; }
.composer-foot .auth-message { flex: 1; text-align: left; }
.composer-count { color: var(--muted); font-size: 12.5px; }

/* --- Pull to refresh --- */
/* Stop the BROWSER's own pull-to-refresh (which would reload the whole page) inside LUNA's screens */
.screen { overscroll-behavior-y: contain; }

.pull-indicator {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141218;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50px);   /* hidden above the screen until you pull */
  pointer-events: none;
}
.pull-indicator svg { width: 20px; height: 20px; color: #f0abfc; fill: rgba(240, 171, 252, 0.25); }
/* Pulled far enough: it glows, meaning "let go to refresh" */
.pull-indicator.ready { border-color: rgba(236, 72, 153, 0.6); box-shadow: 0 0 18px rgba(236, 72, 153, 0.5); }
.pull-indicator.spinning svg { animation: spin 0.8s linear infinite; }
/* Gliding back up when finished */
.pull-indicator.settling { transition: transform 0.3s ease, opacity 0.3s ease; }

/* Tapping a name on a real post opens that person's profile */
.post-user-link { background: none; border: none; padding: 0; text-align: left; cursor: pointer; }

/* The verified badge next to official accounts: a black wavy seal, thin neon outline, neon tick */
.verified {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  vertical-align: -3px;
  filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.45));   /* a soft glow so it stands out on black */
}
.verified svg { width: 100%; height: 100%; }
.verified .badge-seal { fill: #000; stroke: url(#luna-neon); stroke-width: 1.1; }
.verified .badge-tick { fill: none; stroke: url(#luna-neon); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.profile-name .verified { width: 24px; height: 24px; vertical-align: -3px; }

/* "✨ Example" next to example posts, so everyone knows they're examples */
.example-pill {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
  font-size: 11.5px;
  font-weight: 600;
}

/* In Search: tapping a person (photo + names) opens their profile */
.person-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
}

/* Account panel */
.account-email {
  margin: -10px 0 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.logout-btn {
  width: 100%;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.12);
  color: #fda4af;
  font-weight: 600;
  font-size: 15px;
}
.logout-btn:active { transform: scale(0.97); }

/* "Edit profile" in the account menu */
.account-btn {
  width: 100%;
  height: 50px;
  margin-bottom: 10px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 15px;
}
.account-btn:active { transform: scale(0.97); }

/* Tapping your own profile photo opens "Edit profile" */
#profile-avatar { cursor: pointer; }

/* =========================================================
   SET UP / EDIT PROFILE SCREEN
   ========================================================= */

.setup-screen {
  position: absolute;
  inset: 0;
  z-index: 38;            /* above the app, below the log in screen */
  overflow-y: auto;
  padding: 44px 28px 40px;
  background:
    radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.25), transparent 45%),
    radial-gradient(circle at 10% 100%, rgba(34, 211, 238, 0.15), transparent 45%),
    #000;
  scrollbar-width: none;
}
.setup-screen::-webkit-scrollbar { display: none; }
.setup-screen[hidden] { display: none; }

.setup-close { position: absolute; top: 18px; right: 18px; }
.setup-close[hidden] { display: none; }

.setup-title {
  margin: 0;
  text-align: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 22px;
}
.setup-subtitle { margin: 6px 0 4px; text-align: center; color: var(--muted); }

.setup-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  margin-bottom: 6px;
}
.setup-photo .profile-avatar { margin-bottom: 10px; }
.setup-photo-label { color: #f0abfc; font-weight: 600; font-size: 14px; }

.setup-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

/* The "@" sits inside the username box */
.username-field { position: relative; display: block; }
.username-field .auth-input { width: 100%; padding-left: 34px; }
.username-at {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
}

.setup-hint { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.setup-password { display: flex; flex-direction: column; gap: 10px; }
.setup-password[hidden] { display: none; }

/* =========================================================
   LOG IN / SIGN UP SCREEN
   ========================================================= */

.auth-screen {
  position: absolute;
  inset: 0;
  z-index: 40;            /* on top of everything */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 0%, rgba(139, 92, 246, 0.28), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(236, 72, 153, 0.22), transparent 45%),
    #000;
}
.auth-screen[hidden] { display: none; }

.auth-logo { justify-content: center; font-size: 38px; }
.auth-tagline { margin: 8px 0 30px; text-align: center; color: var(--muted); }

/* Log in / Sign up switch, with the same dark moving pill as the tab bar */
.auth-tabs {
  --index: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.auth-tab {
  position: relative;
  z-index: 1;
  height: 40px;
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.3s;
}
.auth-tab.active { color: white; }
.auth-tab-glow {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg, #141218 0%, #2a1638 30%, #0f2530 60%, #141218 100%);
  background-size: 300% 100%;
  animation: pill-flow 6s ease-in-out infinite alternate;
  transform: translateX(calc(var(--index) * 100%));
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.signup-only { display: flex; flex-direction: column; gap: 12px; }
.auth-screen:not(.signup) .signup-only { display: none; }   /* hide name + username when logging in */

.auth-input {
  height: 50px;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.auth-input::placeholder { color: var(--muted); }
.auth-input:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

.auth-message {
  min-height: 20px;
  margin: 0;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.4;
  color: #fda4af;          /* soft red for problems */
}
.auth-message.ok { color: #86efac; }   /* soft green for good news */

.auth-submit {
  height: 52px;
  border: none;
  border-radius: 16px;
  background: var(--neon);
  color: white;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 0 22px rgba(236, 72, 153, 0.4);
  transition: transform 0.2s, opacity 0.2s;
}
.auth-submit:active { transform: scale(0.97); }
.auth-submit:disabled { opacity: 0.6; }

/* "Continue with Google": white, like Google's own sign-in buttons */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  border: none;
  border-radius: 16px;
  background: #fff;
  color: #1f1f1f;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s;
}
.google-btn:active { transform: scale(0.97); }
.google-btn svg { width: 20px; height: 20px; stroke: none; }

/* A line with "or use email" in the middle */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.forgot-link {
  align-self: center;
  padding: 4px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13.5px;
}
.forgot-link:hover { color: var(--text); text-decoration: underline; }

/* Only show what each mode needs */
.auth-screen.signup .forgot-link { display: none; }
.auth-screen.reset .google-btn,
.auth-screen.reset .auth-divider,
.auth-screen.reset .auth-tabs,
.auth-screen.reset #auth-email,
.auth-screen.reset .forgot-link { display: none; }

.sheet-handle {
  width: 40px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 18px;
}
.sheet h3 {
  margin: 0 0 20px;
  text-align: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.sheet-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sheet-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 500;
  transition: transform 0.2s, background 0.2s;
}
.sheet-option:hover { background: rgba(255, 255, 255, 0.09); }
.sheet-option:active { transform: scale(0.94); }
.opt-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--neon);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.45);
}
.opt-icon svg { width: 26px; height: 26px; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 110px;
  z-index: 50;            /* messages always show on top of everything */
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(30, 27, 48, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  font-size: 14px;
  width: max-content;
  max-width: calc(100% - 40px);   /* long messages wrap onto 2 lines instead of running off the screen */
  text-align: center;
  line-height: 1.4;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- Messages: the Message button on profiles --- */
.message-btn {
  height: 36px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.2s;
}
.message-btn:active { transform: scale(0.92); }

/* --- Messages: the inbox --- */
.inbox-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.inbox-tab {
  flex: 1;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.inbox-tab.active { background: rgba(139, 92, 246, 0.22); color: var(--text); }
/* How many requests are waiting */
.inbox-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pink);
  color: white;
  font-size: 11px;
}
.inbox-count[hidden] { display: none; }

.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -10px;
  padding: 10px;
  border-radius: 16px;
  cursor: pointer;
  animation: screen-in 0.35s ease both;
}
.chat-row:hover { background: rgba(255, 255, 255, 0.03); }
.chat-row .avatar { width: 52px; height: 52px; flex-shrink: 0; }
.chat-row-text { flex: 1; min-width: 0; }
.chat-row-text p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-row-name { font-size: 15px; font-weight: 600; }
.chat-row-last { margin-top: 3px !important; color: var(--muted); font-size: 14px; }
.chat-row-time { flex-shrink: 0; color: var(--muted); font-size: 12px; }
/* Unread chats: white bold preview + a glowing pink dot */
.chat-row.unread .chat-row-last { color: var(--text); font-weight: 600; }
.chat-row.unread .chat-row-time::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

/* --- Messages: one chat (covers the whole phone) --- */
.chat-panel {
  position: absolute;
  inset: 0;
  z-index: 30;            /* above the app and tab bar, below the photo viewer and toasts */
  display: flex;
  flex-direction: column;
  background: #000;
  animation: chat-in 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.chat-panel[hidden] { display: none; }
@keyframes chat-in { from { transform: translateX(100%); } }

.chat-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.chat-who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--text);
  text-align: left;
}
.chat-who .avatar { width: 38px; height: 38px; flex-shrink: 0; }
.chat-who span { display: flex; flex-direction: column; min-width: 0; }
.chat-who b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who small { color: var(--muted); font-size: 12px; }

.chat-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding: 14px 16px;
  scrollbar-width: none;
}
.chat-thread::-webkit-scrollbar { display: none; }

/* The bubbles: yours in neon on the right, theirs in dark glass on the left */
.bubble {
  max-width: 76%;
  padding: 9px 14px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  animation: bubble-in 0.25s ease both;
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px) scale(0.97); } }
.bubble.mine {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: white;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.25);
}
.bubble.theirs {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: #17141f;
  border: 1px solid var(--border);
}
.bubble.sending { opacity: 0.55; }

.chat-time { align-self: center; margin: 12px 0 6px; color: var(--muted); font-size: 12px; }
.chat-status { align-self: flex-end; margin: 2px 4px 0; color: var(--muted); font-size: 12px; }

/* A brand-new chat */
.chat-hello {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: auto 0;
  text-align: center;
}
.chat-hello .avatar { width: 84px; height: 84px; margin-bottom: 8px; }
.chat-hello b { font-size: 17px; font-weight: 600; }
.chat-hello span { color: var(--muted); font-size: 14px; }
.chat-hello p { margin: 14px 0 0; color: var(--muted); }

/* The typing bar at the bottom */
.chat-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 20px;
  border-top: 1px solid var(--border);
}
.chat-form[hidden] { display: none; }
.chat-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.chat-form input:focus { border-color: var(--violet); }
.chat-send {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: var(--neon);
  color: white;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
  transition: transform 0.2s, opacity 0.2s;
}
.chat-send svg { width: 20px; height: 20px; }
.chat-send:active { transform: scale(0.9); }
.chat-send:disabled { opacity: 0.35; box-shadow: none; }

/* A stranger's request: Accept or Delete */
.chat-request {
  padding: 16px 16px 22px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.chat-request[hidden] { display: none; }
.chat-request p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.chat-request p b { color: var(--text); }
.chat-request-buttons { display: flex; gap: 10px; }
.chat-request-buttons button {
  flex: 1;
  height: 44px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
}
.chat-decline { border: 1px solid rgba(253, 164, 175, 0.35); background: none; color: #fda4af; }
.chat-accept { border: none; background: var(--neon); color: white; }

/* =========================================================
   NIGHT ALBUMS
   ========================================================= */
.muted-line { color: var(--muted); font-size: 12.5px; }

/* Home: small cards for albums happening now or just developed */
.home-albums { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.home-albums:empty { display: none; }
.home-album {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(236, 72, 153, 0.4);
  background: linear-gradient(140deg, rgba(139, 92, 246, 0.26), rgba(236, 72, 153, 0.12));
  color: var(--text);
  text-align: left;
  font-size: 12.5px;
}
.home-album.ready { border-color: rgba(245, 180, 70, 0.5); background: linear-gradient(120deg, rgba(245, 180, 70, 0.22), rgba(236, 72, 153, 0.14)); }
.home-album-emoji { font-size: 24px; }
.home-album-text { flex: 1; min-width: 0; color: rgba(245, 243, 255, 0.8); }
.home-album-text b { display: block; color: var(--text); font-size: 14px; }
.home-album-go { font-size: 22px; color: var(--muted); }

/* The list */
.albums-new { height: 34px; padding: 0 14px; border: none; border-radius: 999px; background: var(--neon); color: white; font-weight: 700; font-size: 13px; }
#albums-list { display: flex; flex-direction: column; gap: 10px; }
.album-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
}
.album-card.live { border-color: rgba(236, 72, 153, 0.4); background: linear-gradient(140deg, rgba(139, 92, 246, 0.28), rgba(236, 72, 153, 0.14)); box-shadow: 0 0 24px rgba(236, 72, 153, 0.18); }
.album-card-emoji { flex-shrink: 0; width: 60px; height: 72px; display: grid; place-items: center; border-radius: 12px; background: #15121e; font-size: 28px; }
.album-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.album-card-info b { font-size: 15px; }
.album-tag { margin-top: 3px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.album-tag.live { background: rgba(236, 72, 153, 0.22); color: #f9a8d4; }
.album-tag.ready { background: rgba(245, 180, 70, 0.2); color: #f5b445; }
.album-tag.old { background: var(--surface); color: var(--muted); }

/* Start a night */
.album-form { display: flex; flex-direction: column; gap: 16px; }
.album-field { display: flex; flex-direction: column; gap: 8px; }
.album-field > span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.album-field > span small { font-weight: 400; letter-spacing: 0; }
.album-field input {
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  outline: none;
}
.album-field input:focus { border-color: var(--violet); }
.album-emojis { display: flex; gap: 7px; flex-wrap: wrap; }
.album-emojis button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 19px; }
.album-emojis button.on { border-color: var(--pink); background: rgba(236, 72, 153, 0.18); }
.album-friends { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.album-friend { position: relative; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 56px; padding: 0; border: none; background: none; color: var(--muted); font-size: 10px; }
.album-friend img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; }
.album-friend span { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.album-friend.on { color: var(--text); }
.album-friend.on img { border-color: var(--pink); }
.album-friend.on::after { content: "✓"; position: absolute; top: 32px; right: 0; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #000; background: var(--pink); color: white; font-size: 11px; font-weight: 800; }
.album-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.album-pills button { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-size: 12.5px; font-weight: 600; }
.album-pills button.on { border-color: rgba(139, 92, 246, 0.6); background: rgba(139, 92, 246, 0.25); color: var(--text); }
.album-toggle { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(245, 180, 70, 0.35); background: rgba(245, 180, 70, 0.1); font-size: 13px; cursor: pointer; }
.album-toggle span { flex: 1; color: rgba(245, 243, 255, 0.8); }
.album-toggle b { display: block; color: var(--text); font-size: 14px; }
.album-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.album-toggle i { position: relative; flex-shrink: 0; width: 42px; height: 24px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); transition: background 0.2s; }
.album-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform 0.2s; }
.album-toggle input:checked + i { background: #f5b445; }
.album-toggle input:checked + i::after { transform: translateX(18px); }
.album-start { height: 50px; border: none; border-radius: 16px; background: var(--neon); color: white; font-size: 15px; font-weight: 700; box-shadow: 0 0 22px rgba(236, 72, 153, 0.45); }
.album-start:disabled { opacity: 0.5; }

/* One album: the header's little faces */
.album-people { display: flex; min-width: 42px; justify-content: flex-end; }
.album-people img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid #000; }
.album-people img + img { margin-left: -8px; }
#album-content { display: flex; flex-direction: column; gap: 14px; }

/* During the night */
.night-camera { padding: 16px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.1); background: linear-gradient(160deg, #2a2233, #15111d); }
.night-camera h3 { margin: 0; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 20px; }
.night-counter { display: flex; gap: 10px; margin-top: 14px; }
.night-counter div { flex: 1; padding: 10px; border-radius: 14px; background: rgba(0, 0, 0, 0.4); text-align: center; }
.night-counter small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.1em; }
.night-counter b { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 22px; }
.neon-num { background: var(--neon); -webkit-background-clip: text; background-clip: text; color: transparent; }
.film-num { color: #f5b445; }
.locked-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; overflow: hidden; border-radius: 10px; }
/* The tiny blurry version, blurred and darkened even more: you can tell there's a photo, not what's in it */
.locked-shot { position: relative; height: 62px; border-radius: 8px; overflow: hidden; background: #1a1622 center / cover; filter: blur(3px) brightness(0.55) sepia(0.4); }
.night-note { margin: 0; text-align: center; color: var(--muted); font-size: 12.5px; }
.night-shutter {
  align-self: center;
  width: 78px;
  height: 78px;
  border: none;
  border-radius: 50%;
  background: white;
  font-size: 28px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15), 0 0 30px rgba(236, 72, 153, 0.6);
  transition: transform 0.15s;
}
.night-shutter:active { transform: scale(0.9); }
.night-gallery { align-self: center; height: 40px; margin-top: -2px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13.5px; font-weight: 600; }
.night-gallery:disabled { opacity: 0.35; }
.night-shutter:disabled { opacity: 0.35; box-shadow: none; }

/* Developed */
.album-expire { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(245, 180, 70, 0.35); background: rgba(245, 180, 70, 0.1); font-size: 12.5px; color: rgba(245, 243, 255, 0.85); }
.album-expire b { color: #f5b445; }
.album-expire button { margin-left: auto; padding: 6px 11px; border: none; border-radius: 10px; background: #f5b445; color: #111; font-weight: 700; font-size: 12px; }
/* Photos of people: shown fully (not cropped), swipe sideways if there are two */
.album-featured { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.album-featured::-webkit-scrollbar { display: none; }
.album-feature {
  flex: 0 0 100%;
  max-height: 440px;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: center;
  border-radius: 18px;
  border: 1.5px solid rgba(245, 166, 91, 0.8);
  background: #0b0910;
  box-shadow: 0 0 26px rgba(245, 166, 91, 0.3);
}
.album-feature img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity 0.6s; }
.album-feature img.loaded { opacity: 1; }
#album-content .mosaic { margin-top: 0; }

/* The morning reveal */
.album-reveal {
  position: absolute;
  inset: 0;
  z-index: 34;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 60px 24px 0;
  background: radial-gradient(circle at 50% 30%, rgba(245, 180, 70, 0.25), transparent 60%), #08060c;
  text-align: center;
  animation: fade-in 0.4s ease;
}
.album-reveal[hidden] { display: none; }
.album-reveal small { color: #f5b445; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.album-reveal h3 { margin: 0; font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 24px; }
.album-reveal p { margin: 0; color: var(--muted); font-size: 12.5px; }
.reveal-stack { position: relative; width: 300px; height: 340px; margin: 6px 0; }
.reveal-print { position: absolute; width: 150px; height: 182px; padding: 7px 7px 26px; border-radius: 3px; background: #f4f1ea; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6); }
.reveal-print img { width: 100%; height: 100%; object-fit: cover; animation: develop 2.6s ease-out both; }
.reveal-print.p1 { left: 10px; top: 40px; transform: rotate(-9deg); }
.reveal-print.p2 { left: 140px; top: 20px; transform: rotate(7deg); }
.reveal-print.p3 { left: 75px; top: 130px; transform: rotate(-2deg); z-index: 2; }
.reveal-print.p2 img { animation-delay: 0.4s; }
.reveal-print.p3 img { animation-delay: 0.8s; }
@keyframes develop {
  from { filter: sepia(0.9) blur(6px) brightness(1.5) contrast(0.4); }
  to   { filter: none; }
}
.reveal-progress { width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.reveal-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #f5b445, var(--pink)); box-shadow: 0 0 12px rgba(245, 180, 70, 0.7); }

/* Looking at one album photo */
.album-lightbox { position: absolute; inset: 0; z-index: 36; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 20px; background: rgba(0, 0, 0, 0.92); animation: fade-in 0.2s ease; }
.album-lightbox[hidden] { display: none; }
.album-lightbox .icon-btn { position: absolute; top: 20px; right: 20px; }
.album-lightbox img { max-width: 100%; max-height: 70%; border-radius: 12px; }
.album-lightbox-actions { display: flex; gap: 8px; }
.album-lightbox-actions button { height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-weight: 600; }
.album-lightbox-actions button:first-child { border: none; background: var(--neon); box-shadow: 0 0 16px rgba(236, 72, 153, 0.4); }

/* Tools in a developed album: tap one, then tap a photo */
.album-tools { display: flex; gap: 10px; }
.album-tools button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 66px;
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.album-tools button span { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); font-size: 22px; transition: box-shadow 0.2s, border-color 0.2s; }
.album-tools button.on { color: var(--text); }
.album-tools button.on span { border-color: rgba(236, 72, 153, 0.7); background: linear-gradient(140deg, rgba(139, 92, 246, 0.35), rgba(236, 72, 153, 0.25)); box-shadow: 0 0 16px rgba(236, 72, 153, 0.4); }
.album-pick { margin: -4px 0 0; padding: 9px 12px; border-radius: 12px; background: rgba(139, 92, 246, 0.18); font-size: 13px; font-weight: 600; text-align: center; }
.album-pick[hidden] { display: none; }

/* --- The polaroid maker --- */
.polaroid-maker {
  position: absolute;
  inset: 0;
  z-index: 37;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 24px;
  overflow-y: auto;
  background: #000;
  scrollbar-width: none;
  animation: fade-in 0.25s ease;
}
.polaroid-maker[hidden] { display: none; }
.polaroid-top { display: flex; align-items: center; justify-content: space-between; }
.polaroid-top h2 { margin: 0; font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 17px; }
/* The preview IS the final picture (post size), just smaller */
.polaroid-preview { flex-shrink: 0; align-self: center; width: min(100%, 300px); aspect-ratio: 4 / 5; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.polaroid-caption { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.polaroid-caption:focus-within { border-color: var(--violet); }
.polaroid-caption input { flex: 1; min-width: 0; border: none; outline: none; background: none; color: var(--text); font-family: "Caveat", cursive; font-weight: 700; font-size: 21px; }
.polaroid-caption input::placeholder { color: var(--muted); }
.polaroid-caption small { color: var(--muted); font-size: 11px; }
.polaroid-angles { display: flex; justify-content: center; gap: 10px; }
.polaroid-angles button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  padding: 10px 0 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.polaroid-angles i { width: 24px; height: 30px; border-radius: 2px; background: #f4f1ea; }
.polaroid-angles button.on { border-color: var(--pink); color: var(--text); box-shadow: 0 0 14px rgba(236, 72, 153, 0.4); }
.polaroid-backgrounds { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.polaroid-backgrounds span { margin-right: 4px; }
.polaroid-backgrounds button { width: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); }
.polaroid-backgrounds button.on { border-color: var(--pink); box-shadow: 0 0 10px rgba(236, 72, 153, 0.6); }
.polaroid-buttons { display: flex; gap: 8px; }
.polaroid-buttons button { flex: 1; height: 48px; border-radius: 16px; font-weight: 700; font-size: 14.5px; }
.polaroid-share { border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.polaroid-post { border: none; background: var(--neon); color: white; box-shadow: 0 0 22px rgba(236, 72, 153, 0.45); }
.polaroid-buttons button:disabled { opacity: 0.6; }

/* The tools row has 5 tools now: let it scroll sideways on small phones */
.album-tools { overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
.album-tools::-webkit-scrollbar { display: none; }
.album-tools button { flex-shrink: 0; }

/* --- Collage + film strip maker --- */
.creation-layouts { display: flex; gap: 8px; }
.creation-layouts[hidden], .polaroid-backgrounds[hidden] { display: none; }
.creation-layouts button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 0 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.creation-layouts button.on { border-color: var(--pink); color: var(--text); box-shadow: 0 0 12px rgba(236, 72, 153, 0.4); }
/* Little drawings of each layout */
.creation-layouts i { display: grid; gap: 2px; width: 30px; height: 30px; }
.creation-layouts b { border-radius: 2px; background: rgba(255, 255, 255, 0.35); }
.lay-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.lay-grid b:first-child { grid-column: span 2; }
.lay-big { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.lay-big b:first-child { grid-row: span 2; }
.lay-row { grid-template-columns: 1fr 1fr 1fr; }
.lay-scatter { position: relative; }
.lay-scatter b { position: absolute; width: 15px; height: 17px; background: #f4f1ea; }
.lay-scatter b:nth-child(1) { left: 0; top: 2px; transform: rotate(-12deg); }
.lay-scatter b:nth-child(2) { right: 0; top: 0; transform: rotate(10deg); }
.lay-scatter b:nth-child(3) { left: 8px; bottom: 0; transform: rotate(-3deg); }
.creation-note { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.creation-picker { display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px; scrollbar-width: none; flex-shrink: 0; }
.creation-picker::-webkit-scrollbar { display: none; }
.creation-picker button { position: relative; flex-shrink: 0; width: 58px; height: 58px; padding: 0; overflow: hidden; border-radius: 10px; border: 2px solid transparent; background: #15121e; opacity: 0.5; }
.creation-picker button.on { opacity: 1; border-color: var(--pink); }
.creation-picker img { width: 100%; height: 100%; object-fit: cover; }
.creation-picker span { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid white; background: var(--pink); color: white; font-size: 10px; font-weight: 800; }

/* --- Recap player --- */
.album-recap { position: absolute; inset: 0; z-index: 38; display: grid; place-items: center; background: #000; }
.album-recap[hidden] { display: none; }
.album-recap canvas { width: 100%; height: 100%; object-fit: contain; }
.album-recap .icon-btn { position: absolute; top: 20px; right: 20px; }
.recap-actions { position: absolute; left: 20px; right: 20px; bottom: 34px; display: flex; gap: 8px; }
.recap-actions[hidden] { display: none; }
.recap-actions button { flex: 1; height: 48px; border-radius: 16px; font-weight: 700; font-size: 14.5px; border: 1px solid var(--border); background: rgba(20, 18, 30, 0.85); color: var(--text); }
.recap-actions button:last-child { border: none; background: var(--neon); box-shadow: 0 0 22px rgba(236, 72, 153, 0.45); }
.recap-status { position: absolute; left: 20px; right: 20px; bottom: 40px; margin: 0; padding: 12px; border-radius: 14px; background: rgba(20, 18, 30, 0.85); text-align: center; font-weight: 600; }
.recap-status[hidden] { display: none; }
.polaroid-hint { margin: -2px 0 0; text-align: center; color: var(--muted); font-size: 11.5px; }
