/* ─── UPDATE: BUTTONS (shared) ─── */
.update-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s;
}
.update-btn:active { transform: scale(0.96); }
.update-btn.ghost { background: transparent; color: var(--text2); }
.update-btn.primary { background: var(--accent2); color: #000; border-color: var(--accent2); }

/* ─── UPDATE: DISMISSIBLE BANNER ─── */
.update-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(var(--safe-b) + 12px);
  z-index: 600; /* above the story viewer (500) — an update matters more */
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.update-banner.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.update-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.update-banner-notes { font-size: 12.5px; color: var(--text2); line-height: 1.4; }

.update-banner-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ─── UPDATE: FORCE-UPDATE SCREEN ─── */
.update-force {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  margin: 0;
  border: none;
  width: 100vw;
  width: var(--app-vw, 100vw);
  height: 100dvh;
  height: var(--app-vh, 100dvh);
  max-width: none;
  max-height: none;
  z-index: 1000; /* above everything, including the update banner */
  background: var(--bg);
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  transition: opacity 0.2s;
}
.update-force.show { opacity: 1; }
.update-force::backdrop { background: transparent; }

.update-force-body {
  max-width: 320px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.update-force-title {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
}
.update-force-notes { font-size: 13px; color: var(--text2); line-height: 1.5; }
.update-force .update-btn { padding: 12px 28px; font-size: 14px; }